fixed error when logging from the clustered master

master
Christophe Bol 10 years ago
parent b694fd1d8d
commit 3300dfae60

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

Loading…
Cancel
Save