Skip to content

Commit

Permalink
Fix unknown errors not appearing in log
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-va committed Oct 24, 2024
1 parent 85cd5b4 commit d588812
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/server-asset-sg/src/app.logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ import colors from 'colors/safe';
export class AppLogger implements LoggerService {
levels: Set<LogLevel> | null = null;

constructor() {
colors.enable();
}

log(message: unknown, ...optionalParams: unknown[]) {
this.write(levels.log, message, optionalParams);
}
Expand Down

0 comments on commit d588812

Please sign in to comment.