Skip to content

Commit

Permalink
fix(logs): add support in local env for error object printing in `err…
Browse files Browse the repository at this point in the history
…or` method
  • Loading branch information
DorShakedMonday committed May 2, 2024
1 parent 136986e commit bcd1edf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/logger/logger.local.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ export class LocalLogger {
}

error(message: string, options?: Options) {
this.logger.error(message, options);
if (options?.error) {
this.logger.error(options.error, message);
} else {
this.logger.error(message);
}
}

warn(message: string) {
Expand Down

0 comments on commit bcd1edf

Please sign in to comment.