mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
refactor(core): Add workflowId to all job processor logs (#16726)
This commit is contained in:
@@ -72,6 +72,7 @@ export class JobProcessor {
|
|||||||
|
|
||||||
this.logger.info(`Worker started execution ${executionId} (job ${job.id})`, {
|
this.logger.info(`Worker started execution ${executionId} (job ${job.id})`, {
|
||||||
executionId,
|
executionId,
|
||||||
|
workflowId,
|
||||||
jobId: job.id,
|
jobId: job.id,
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -168,6 +169,11 @@ export class JobProcessor {
|
|||||||
// Can't set the status directly in the queued worker, but it will happen in InternalHook.onWorkflowPostExecute
|
// Can't set the status directly in the queued worker, but it will happen in InternalHook.onWorkflowPostExecute
|
||||||
this.logger.debug(
|
this.logger.debug(
|
||||||
`Queued worker execution status for execution ${executionId} (job ${job.id}) is "${status}"`,
|
`Queued worker execution status for execution ${executionId} (job ${job.id}) is "${status}"`,
|
||||||
|
{
|
||||||
|
executionId,
|
||||||
|
workflowId,
|
||||||
|
jobId: job.id,
|
||||||
|
},
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -241,6 +247,7 @@ export class JobProcessor {
|
|||||||
|
|
||||||
this.logger.info(`Worker finished execution ${executionId} (job ${job.id})`, {
|
this.logger.info(`Worker finished execution ${executionId} (job ${job.id})`, {
|
||||||
executionId,
|
executionId,
|
||||||
|
workflowId,
|
||||||
jobId: job.id,
|
jobId: job.id,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user