Log port number of current instance in addition to pid. (#7110)

This commit is contained in:
Ben Lubar
2018-12-14 10:21:46 -06:00
committed by Barış Soner Uşaklı
parent 8169739069
commit ff5b04beb9

View File

@@ -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;
});