From 85b4d9c52eb8a6b3b54152cca5c6edde481c863c Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 26 Jun 2018 17:52:14 +0200 Subject: Upgrade dependencies --- server/helpers/logger.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'server') diff --git a/server/helpers/logger.ts b/server/helpers/logger.ts index d92381a2c..04ddf01a6 100644 --- a/server/helpers/logger.ts +++ b/server/helpers/logger.ts @@ -30,7 +30,6 @@ const consoleLoggerFormat = winston.format.printf(info => { if (additionalInfos === '{}') additionalInfos = '' else additionalInfos = ' ' + additionalInfos - if (info.message && info.message.stack !== undefined) info.message = info.message.stack return `[${info.label}] ${info.timestamp} ${info.level}: ${info.message}${additionalInfos}` }) @@ -39,10 +38,6 @@ const jsonLoggerFormat = winston.format.printf(infoArg => { ? Object.assign({}, infoArg, { err: infoArg.err.stack }) : infoArg - if (infoArg.message && infoArg.message.stack !== undefined) { - info = Object.assign({}, info, { message: infoArg.message.stack }) - } - return JSON.stringify(info) }) @@ -53,7 +48,7 @@ const labelFormatter = winston.format.label({ label }) -const logger = new winston.createLogger({ +const logger = winston.createLogger({ level: CONFIG.LOG.LEVEL, transports: [ new winston.transports.File({ @@ -70,7 +65,6 @@ const logger = new winston.createLogger({ }), new winston.transports.Console({ handleExceptions: true, - humanReadableUnhandledException: true, format: winston.format.combine( timestampFormatter, winston.format.splat(), -- cgit v1.2.3