From 9658bd713d39bfcc0ee3baee781ce98e2650e2b8 Mon Sep 17 00:00:00 2001 From: 0xkenj1 Date: Tue, 30 Jul 2024 12:05:19 -0300 Subject: [PATCH] fix: logger printf --- libs/shared/src/logger/logger.module.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/shared/src/logger/logger.module.ts b/libs/shared/src/logger/logger.module.ts index 75f87a8..bdbea32 100644 --- a/libs/shared/src/logger/logger.module.ts +++ b/libs/shared/src/logger/logger.module.ts @@ -15,7 +15,7 @@ import * as winston from "winston"; winston.format.colorize(), winston.format.printf( ({ timestamp, level, message, stack }: Record) => { - return `${timestamp} ${level}: ${stack || message}`; + return `${timestamp} ${level}: ${stack ?? message ?? ""}`; }, ), ),