From 92008b25753c96bef9917cd39baab3a4d160cd9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Minelli?= <git@minelli.swiss> Date: Wed, 26 Feb 2025 13:03:21 +0100 Subject: [PATCH] Logger => Supress ESLint error --- logging/WinstonLogger.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logging/WinstonLogger.ts b/logging/WinstonLogger.ts index a81f1ed..7c991d8 100644 --- a/logging/WinstonLogger.ts +++ b/logging/WinstonLogger.ts @@ -25,7 +25,7 @@ const format = winston.format.combine(winston.format.timestamp({ format: 'YYYY-M level: info.level.toUpperCase() }))(), SharedConfig.production ? winston.format.uncolorize() : winston.format.colorize({ all: true }), winston.format.prettyPrint(), winston.format.errors({ stack: true }), winston.format.align(), winston.format.printf(info => { const metadata = info.metadata ? `\n${ JSON.stringify(info.metadata) }` : ''; - const stack = info.stack ? `\n${ info.stack }` : ''; + const stack = info.stack ? `\n${ JSON.stringify(info.stack, undefined, 4) }` : ''; return `[${ info.timestamp }] (${ process.pid }) ${ info.level } ${ info.message } ${ metadata } ${ stack } `; })); -- GitLab