8000 chore: mentioned issue number in config fix · lianxuify/log4js-node@805c566 · GitHub
[go: up one dir, main page]

Skip to content

Commit 805c566

Browse files
author
Gareth Jones
committed
chore: mentioned issue number in config fix
1 parent 2b532ee commit 805c566

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/log4js.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ function configure(configurationFileOrObject) {
5959
}
6060
debug(`Configuration is ${configObject}`);
6161

62-
// Keep the configObject remain the same
63-
// and clone it to avoid that is not configurable in appenders
62+
// Fix for #743 - clone the config to avoid that is not writable in appenders
63+
// When the node-config module is used, config object becomes immutable.
6464
const clonedConfigObject = CircularJSON.parse(CircularJSON.stringify(configObject));
6565
configuration.configure(clonedConfigObject);
6666

0 commit comments

Comments
 (0)
0