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:
Mike Bardzinski 2012-05-02 16:10:20 +01:00
parent c8157cef5c
commit 872bc791c7

View File

@ -201,7 +201,7 @@ function Logger (name, level) {
util.inherits(Logger, events.EventEmitter); util.inherits(Logger, events.EventEmitter);
Logger.prototype.setLevel = function(level) { 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() { Logger.prototype.removeLevel = function() {