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): ...@@ -424,8 +424,8 @@ class _JobQueueWorker(workerpool.BaseWorker):
op.status = constants.OP_STATUS_ERROR op.status = constants.OP_STATUS_ERROR
op.result = str(err) op.result = str(err)
op.end_timestamp = TimeStampNow() op.end_timestamp = TimeStampNow()"Op %s/%s: Error in opcode %s", idx + 1, count,"Op %s/%s: Error in opcode %s: %s",
op_summary) idx + 1, count, op_summary, err)
finally: finally:
queue.UpdateJobUnlocked(job) queue.UpdateJobUnlocked(job)
finally: 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