fixed error when logging from the clustered master

This commit is contained in:
Christophe Bol
2014-12-01 15:34:09 +01:00
parent b694fd1d8d
commit 3300dfae60

View File

@@ -213,7 +213,7 @@ function patternLayout (pattern, tokens) {
} }
function pid(loggingEvent) { function pid(loggingEvent) {
if (loggingEvent.pid) { if (loggingEvent && loggingEvent.pid) {
return loggingEvent.pid; return loggingEvent.pid;
} else { } else {
return process.pid; return process.pid;