mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 15:05:46 +01:00
Log port number of current instance in addition to pid. (#7110)
This commit is contained in:
committed by
Barış Soner Uşaklı
parent
8169739069
commit
ff5b04beb9
@@ -56,7 +56,7 @@ function setupWinston() {
|
||||
formats.push(winston.format.json());
|
||||
} else {
|
||||
const timestampFormat = winston.format((info) => {
|
||||
var dateString = new Date().toISOString() + ' [' + global.process.pid + ']';
|
||||
var dateString = new Date().toISOString() + ' [' + nconf.get('port') + '/' + global.process.pid + ']';
|
||||
info.level = dateString + ' - ' + info.level;
|
||||
return info;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user