Skip to content

Commit 04faad9

Browse files
author
Andrei Tsaregorodtsev
authored
Merge pull request #5574 from chrisburr/fix-opt-err-log
[v7r2] Error logging when optimisation fails
2 parents 40e8b95 + 689b685 commit 04faad9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/DIRAC/WorkloadManagementSystem/Service/OptimizationMindHandler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ def msg_OptimizeJobs(self, msgObj):
6464
self.forgetTask(jid)
6565
result = self.executeTask(jid, CachedJobState(jid))
6666
if not result["OK"]:
67-
self.log.error("Could not add job %s to optimization: %s" % (jid, result["Value"]))
67+
self.log.error("Could not add job to optimization:", "%s %r" % (jid, result))
6868
else:
69-
self.log.info("Received new job %s" % jid)
69+
self.log.info("Received new job", str(jid))
7070
return S_OK()
7171

7272
@classmethod

0 commit comments

Comments
 (0)