From bfbea1254eafdb280a6ee44a547dbbaa5942d37c Mon Sep 17 00:00:00 2001 From: Matthew Keil Date: Fri, 29 Sep 2023 16:40:49 +0200 Subject: [PATCH] Revert "feat(logger): throw better error with unsupported trace log level" This reverts commit 4b6a3cc7097aad3feb159ddad20a26fd6ecc1750. --- packages/logger/src/winston.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/logger/src/winston.ts b/packages/logger/src/winston.ts index f7d4d797abf4..441712028d7f 100644 --- a/packages/logger/src/winston.ts +++ b/packages/logger/src/winston.ts @@ -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 {