Fixed bug that failed test 'set level on all categories'

This commit is contained in:
Luis Malheiro 2014-09-01 14:37:25 +02:00
parent 036293db41
commit 39a73586ed

View File

@ -240,13 +240,13 @@ function configureLevels(_levels) {
var keys = Object.keys(levels.config).sort(); var keys = Object.keys(levels.config).sort();
for (var idx in keys) { for (var idx in keys) {
var category = keys[idx]; var category = keys[idx];
if(category === ALL_CATEGORIES) {
setGlobalLogLevel(_levels[category]);
}
for(var loggerCategory in loggers) { for(var loggerCategory in loggers) {
if (doesLevelEntryContainsLogger(category, loggerCategory)) { if (doesLevelEntryContainsLogger(category, loggerCategory)) {
loggers[loggerCategory].setLevel(_levels[category]); loggers[loggerCategory].setLevel(_levels[category]);
} }
if(category === ALL_CATEGORIES) {
setGlobalLogLevel(levels[category]);
}
} }
} }
} }