Skip to content

Commit

Permalink
Merge pull request #195 from internxt/releases/1.5.27
Browse files Browse the repository at this point in the history
1.5.27 release
  • Loading branch information
PixoDev authored May 3, 2023
2 parents c43d9d8 + 3753b62 commit bf1a9c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/ErrorService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ class ErrorService {
extra: context.extra,
});

// We are going to add the error to the logger too
// We are going to add the error to the logger too, with the context
const loggerMessage = (error as Error).message ? (error as Error).message : JSON.stringify(error);
this.logger.error(loggerMessage);
this.logger.error(`${loggerMessage} - Context: ${JSON.stringify(context, null, 2)}`);
}
}

Expand Down

0 comments on commit bf1a9c0

Please sign in to comment.