Skip to content
Snippets Groups Projects
Commit 78fcfd43 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

masterd: Remove duplicate code


Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarHelga Velroyen <helgav@google.com>
parent 7fb5ac7c
No related branches found
No related tags found
No related merge requests found
......@@ -71,12 +71,13 @@ def _LogNewJob(status, info, ops):
"""Log information about a recently submitted job.
"""
op_summary = utils.CommaJoin(op.Summary() for op in ops)
if status:
logging.info("New job with id %s, summary: %s",
info, utils.CommaJoin(op.Summary() for op in ops))
logging.info("New job with id %s, summary: %s", info, op_summary)
else:
logging.info("Failed to submit job, reason: '%s', summary: %s",
info, utils.CommaJoin(op.Summary() for op in ops))
info, op_summary)
class ClientRequestWorker(workerpool.BaseWorker):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment