Commit 0f6be82a authored by Iustin Pop's avatar Iustin Pop
Browse files

job queue: log the opcode error too

Currently we only log "Error in opcode ...", but we don't log the error itself.
This is not good for debugging.

Reviewed-by: ultrotter
parent 5c44da6a
......@@ -424,8 +424,8 @@ class _JobQueueWorker(workerpool.BaseWorker):
op.status = constants.OP_STATUS_ERROR
op.result = str(err)
op.end_timestamp = TimeStampNow()
logging.info("Op %s/%s: Error in opcode %s", idx + 1, count,
op_summary)
logging.info("Op %s/%s: Error in opcode %s: %s",
idx + 1, count, op_summary, err)
finally:
queue.UpdateJobUnlocked(job)
finally:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment