mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 23:15:48 +01:00
closes #6091
This commit is contained in:
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user