Skip to content
Snippets Groups Projects
Commit 92008b25 authored by michael.minelli's avatar michael.minelli
Browse files

Logger => Supress ESLint error

parent 3605016c
No related branches found
No related tags found
No related merge requests found
......@@ -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 } `;
}));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment