Fixes the log4js.configure({}) issue which zapped all loggers' levels to TRACE, even if they were previously set to something else
This commit is contained in:
parent
c8157cef5c
commit
872bc791c7
@ -201,7 +201,7 @@ function Logger (name, level) {
|
||||
util.inherits(Logger, events.EventEmitter);
|
||||
|
||||
Logger.prototype.setLevel = function(level) {
|
||||
this.level = levels.toLevel(level, levels.TRACE);
|
||||
this.level = levels.toLevel(level, this.level || levels.TRACE);
|
||||
};
|
||||
|
||||
Logger.prototype.removeLevel = function() {
|
||||
|
Loading…
Reference in New Issue
Block a user