Authored by ccbikai

日志错误不退出程序

@@ -17,7 +17,8 @@ const logger = new (winston.Logger)({ @@ -17,7 +17,8 @@ const logger = new (winston.Logger)({
17 new (FileTransport)(config.loggers.errorFile), 17 new (FileTransport)(config.loggers.errorFile),
18 new (winston.transports.UdpTransport)(config.loggers.udp), 18 new (winston.transports.UdpTransport)(config.loggers.udp),
19 new (winston.transports.Console)(config.loggers.console) 19 new (winston.transports.Console)(config.loggers.console)
20 - ] 20 + ],
  21 + exitOnError: false
21 }); 22 });
22 23
23 module.exports = logger; 24 module.exports = logger;