From 0b78a1c1ffc5e64b2a799fa4bb9443ed9f413bb9 Mon Sep 17 00:00:00 2001 From: jzunigax2 <125698953+jzunigax2@users.noreply.github.com> Date: Tue, 27 Aug 2024 08:25:26 -0600 Subject: [PATCH] fix: correctly format logs in prod --- src/lib/logger.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/logger.ts b/src/lib/logger.ts index cebd0353..75d1026e 100644 --- a/src/lib/logger.ts +++ b/src/lib/logger.ts @@ -13,6 +13,7 @@ const winstonProdOptions: winston.LoggerOptions = { handleExceptions: true, format: combine( timestamp({ format: 'YYYY-MM-DD HH:mm:ss' }), + splat(), printf((info) => { return JSON.stringify({ hostname: serverHostname,