Skip to content

Commit

Permalink
[Synthetics] Removing passing of error object to logger.error as meta…
Browse files Browse the repository at this point in the history
… parameter (#161276)
  • Loading branch information
shahzad31 authored Jul 7, 2023
1 parent 42bc85f commit 6b52658
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -238,9 +238,10 @@ export class SyntheticsService {
stackVersion: this.server.stackVersion,
});

this.logger?.error(e);

this.logger?.error(
`Error running task: ${SYNTHETICS_SERVICE_SYNC_MONITORS_TASK_ID}, `,
e?.message ?? e
`Error running synthetics syncs task: ${SYNTHETICS_SERVICE_SYNC_MONITORS_TASK_ID}, ${e?.message}`
);

return null;
Expand Down

0 comments on commit 6b52658

Please sign in to comment.