mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 23:15:48 +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());
|
formats.push(winston.format.json());
|
||||||
} else {
|
} else {
|
||||||
const timestampFormat = winston.format((info) => {
|
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;
|
info.level = dateString + ' - ' + info.level;
|
||||||
return info;
|
return info;
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user