Skip to content

Commit

Permalink
Merge pull request #1283 from jlsalmon/patch-1
Browse files Browse the repository at this point in the history
fix: log stack traces for exceptions thrown inside event handlers
  • Loading branch information
kamilmysliwiec authored Oct 21, 2024
2 parents cb65f61 + c8672ca commit 63dc888
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/event-subscribers.loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ export class EventSubscribersLoader
return await instance[methodKey].call(instance, ...args);
} catch (e) {
if (options?.suppressErrors ?? true) {
this.logger.error(e);
this.logger.error(e.message, e.stack);
} else {
throw e;
}
Expand Down

0 comments on commit 63dc888

Please sign in to comment.