Skip to content

Commit

Permalink
Revert "feat(logger): throw better error with unsupported trace log l…
Browse files Browse the repository at this point in the history
…evel"

This reverts commit 4b6a3cc.
  • Loading branch information
matthewkeil committed Sep 29, 2023
1 parent 526702c commit a5f3bbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/logger/src/winston.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ export class WinstonLogger implements Logger {
this.createLogEntry(LogLevel.debug, message, context, error);
}

trace(): void {
throw new Error("Trace it not supported by Lodestar");
trace(message: string, context?: LogData, error?: Error): void {
this.createLogEntry(LogLevel.trace, message, context, error);
}

private createLogEntry(level: LogLevel, message: string, context?: LogData, error?: Error): void {
Expand Down

0 comments on commit a5f3bbb

Please sign in to comment.