8000 Merge pull request #465 from jpstotz/master · mKoder/log4js-node@2e3cb97 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2e3cb97

Browse files
authored
Merge pull request log4js-node#465 from jpstotz/master
bugfix for issue log4js-node#457
2 parents 406084a + 2c7cbf0 commit 2e3cb97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/layouts.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ function patternLayout(pattern, tokens, timezoneOffset) {
249249
}
250250

251251
function pid(loggingEvent) {
252-
return loggingEvent && loggingEvent.pid ? loggingEvent.pid : process.pid;
252+
return loggingEvent && loggingEvent.pid ? loggingEvent.pid.toString() : process.pid.toString();
253253
}
254254

255255
function clusterInfo(loggingEvent, specifier) {

0 commit comments

Comments
 (0)
0