closes #11906
[arvados.git] / services / crunch-dispatch-slurm / crunch-dispatch-slurm.go
index 296c0a3f40a0af1919f1951975f2c1a1ced81c12..30cbb79dc186de45366d648e2a26e42266ee7de3 100644 (file)
@@ -1,3 +1,7 @@
+// Copyright (C) The Arvados Authors. All rights reserved.
+//
+// SPDX-License-Identifier: AGPL-3.0
+
 package main
 
 // Dispatcher service for Crunch that submits containers to the slurm queue.
@@ -227,7 +231,7 @@ func run(disp *dispatch.Dispatcher, ctr arvados.Container, status <-chan arvados
                log.Printf("Submitting container %s to slurm", ctr.UUID)
                if err := submit(disp, ctr, theConfig.CrunchRunCommand); err != nil {
                        text := fmt.Sprintf("Error submitting container %s to slurm: %s", ctr.UUID, err)
-                       log.Printf(text)
+                       log.Print(text)
 
                        lr := arvadosclient.Dict{"log": arvadosclient.Dict{
                                "object_uuid": ctr.UUID,