Skip to content

Commit

Permalink
log the task id as well when unable to parse settings
Browse files Browse the repository at this point in the history
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
  • Loading branch information
freben committed Nov 11, 2021
1 parent d252c98 commit aeaa2fe
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/backend-tasks/src/tasks/TaskWorker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,8 @@ export class TaskWorker {
return { result: 'ready', settings };
} catch (e) {
this.logger.info(
'No longer able to parse task settings; aborting and assuming that a ' +
'newer version of the task has been issued and being handled by ' +
`other workers, ${e}`,
`Task "${this.taskId}" is no longer able to parse task settings; aborting and assuming that a ` +
`newer version of the task has been issued and being handled by other workers, ${e}`,
);
return { result: 'abort' };
}
Expand Down

0 comments on commit aeaa2fe

Please sign in to comment.