diff --git a/api/lib/logger.js b/api/lib/logger.js index 964b3f74..0ebe421f 100644 --- a/api/lib/logger.js +++ b/api/lib/logger.js @@ -7,13 +7,20 @@ var logger = new winston.Logger({ prettyPrint: true, colorize: true, timestamp: true, - handleExceptions: true, + handleExceptions: false, logLevel: 'info', showLevel: true, silent: config.get('NODE_ENV') === 'test' }) ], - exitOnError: false + exceptionHandlers: [ + new winston.transports.Console({ + prettyPrint: true, + colorize: true, + timestamp: true + }) + ], + exitOnError: true }); exports.logger = logger; diff --git a/server/logger.js b/server/logger.js index ab5ee5af..0736793a 100644 --- a/server/logger.js +++ b/server/logger.js @@ -9,14 +9,21 @@ var logger = exports.logger = new winston.Logger({ new winston.transports.Console({ prettyPrint: true, colorize: true, - handleExceptions: true, + handleExceptions: false, level: 'info', showLevel: true, timestamp: true, silent: config.get('NODE_ENV') === 'test' }) ], - exitOnError: false + exceptionHandlers: [ + new winston.transports.Console({ + prettyPrint: true, + colorize: true, + timestamp: true + }) + ], + exitOnError: true }); /**