v1.18.x
Barış Soner Uşaklı 7 years ago
parent 421685ee69
commit e35d0624d3

@ -15,8 +15,7 @@ function setupWinston() {
timestamp: function () {
var date = new Date();
return nconf.get('json-logging') ? date.toJSON() :
date.getDate() + '/' + (date.getMonth() + 1) + ' ' +
date.toTimeString().substr(0, 8) + ' [' + global.process.pid + ']';
date.toISOString() + ' [' + global.process.pid + ']';
},
level: nconf.get('log-level') || (global.env === 'production' ? 'info' : 'verbose'),
json: !!nconf.get('json-logging'),

Loading…
Cancel
Save