mirror of
https://github.com/log4js-node/log4js-node.git
synced 2025-12-08 19:26:01 +00:00
fixed small issue that could occur with wrong evaluated parameters
This commit is contained in:
parent
bec0d05847
commit
5c75ba9468
@ -236,7 +236,7 @@ function patternLayout (pattern, tokens) {
|
||||
replacement = "%";
|
||||
break;
|
||||
case "x":
|
||||
if(tokens[specifier]) {
|
||||
if(typeof(tokens[specifier]) !== 'undefined') {
|
||||
if(typeof(tokens[specifier]) === 'function') {
|
||||
replacement = tokens[specifier]();
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user