Skip to content

Commit

Permalink
fix(error-logger): log error message as event.reason as well
Browse files Browse the repository at this point in the history
AUT-2249
  • Loading branch information
akapa committed Sep 28, 2023
1 parent 4b358b9 commit 7663720
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/logger/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,9 @@ export class Logger {
context: this.shortenData((error as ErrorWithData).data),
stack_trace: this.shortenStackTrace(error.stack || ''),
},
event: {
reason: error.message,
},
};
}

Expand Down

0 comments on commit 7663720

Please sign in to comment.