Skip to content

Node.js based forum software built for the modern web

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

Ben Lubarff5b04beb9c3
diff --git a/src/prestart.js b/src/prestart.js
index a310321028..f4b661f0bb 100644
--- a/src/prestart.js
+++ b/src/prestart.js
@@ -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;
});