8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b532ee commit 805c566Copy full SHA for 805c566
lib/log4js.js
@@ -59,8 +59,8 @@ function configure(configurationFileOrObject) {
59
}
60
debug(`Configuration is ${configObject}`);
61
62
- // Keep the configObject remain the same
63
- // and clone it to avoid that is not configurable in appenders
+ // Fix for #743 - clone the config to avoid that is not writable in appenders
+ // When the node-config module is used, config object becomes immutable.
64
const clonedConfigObject = CircularJSON.parse(CircularJSON.stringify(configObject));
65
configuration.configure(clonedConfigObject);
66
0 commit comments