Skip to content

Commit 7663720

Browse files
committed
fix(error-logger): log error message as event.reason as well
AUT-2249
1 parent 4b358b9 commit 7663720

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/logger/logger.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,9 @@ export class Logger {
183183
context: this.shortenData((error as ErrorWithData).data),
184184
stack_trace: this.shortenStackTrace(error.stack || ''),
185185
},
186+
event: {
187+
reason: error.message,
188+
},
186189
};
187190
}
188191

0 commit comments

Comments
 (0)