mirror of
https://github.com/log4js-node/log4js-node.git
synced 2025-12-08 19:26:01 +00:00
fixed error when logging from the clustered master
This commit is contained in:
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…
x
Reference in New Issue
Block a user