Skip to content

Commit

Permalink
bugfix for issue #457: pattern %z (process id) can not be padded/trun…
Browse files Browse the repository at this point in the history
…cated
  • Loading branch information
jpstotz committed Mar 27, 2017
1 parent 406084a commit 2c7cbf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/layouts.js
Expand Up @@ -249,7 +249,7 @@ function patternLayout(pattern, tokens, timezoneOffset) {
}

function pid(loggingEvent) {
return loggingEvent && loggingEvent.pid ? loggingEvent.pid : process.pid;
return loggingEvent && loggingEvent.pid ? loggingEvent.pid.toString() : process.pid.toString();
}

function clusterInfo(loggingEvent, specifier) {
Expand Down

0 comments on commit 2c7cbf0

Please sign in to comment.