Skip to content

Commit

Permalink
Fix lost context
Browse files Browse the repository at this point in the history
  • Loading branch information
parzhitsky committed Oct 15, 2023
1 parent d6e5528 commit a61c390
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/server/src/app/app-error/error-logger.abstract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export abstract class ErrorLogger<E extends Error> {

log(error: E): void {
const logLevel = this.getLogLevel(error)
const log = this.logger[logLevel]
const log = this.logger[logLevel].bind(this.logger)
const summary = this.getSummary(error)

log(summary)
Expand Down

0 comments on commit a61c390

Please sign in to comment.