mirror of
https://github.com/log4js-node/log4js-node.git
synced 2025-12-08 19:26:01 +00:00
chore: add clone comment in configure
This commit is contained in:
parent
b1fe5b5d16
commit
7d9fdc9d29
@ -58,7 +58,11 @@ function configure(configurationFileOrObject) {
|
||||
configObject = loadConfigurationFile(configurationFileOrObject);
|
||||
}
|
||||
debug(`Configuration is ${configObject}`);
|
||||
configuration.configure(CircularJSON.parse(CircularJSON.stringify(configObject)));
|
||||
|
||||
// Keep the configObject remain the same
|
||||
// and clone it to avoid that is not configurable in appenders
|
||||
const clonedConfigObject = CircularJSON.parse(CircularJSON.stringify(configObject));
|
||||
configuration.configure(clonedConfigObject);
|
||||
|
||||
clustering.onMessage(sendLogEventToAppender);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user