From e7c0b0da5245c86624d953317ea4d24ebf36c338 Mon Sep 17 00:00:00 2001 From: Rolf Koenders Date: Wed, 22 Jan 2014 20:13:36 +0100 Subject: [PATCH] =?UTF-8?q?Changed=20to=20only=20the=20=E2=80=9Alevels?= =?UTF-8?q?=E2=80=99=20option=20as=20discussed=20in=20#87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/log4js.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/log4js.js b/lib/log4js.js index f6b6b4a..453a62c 100644 --- a/lib/log4js.js +++ b/lib/log4js.js @@ -176,9 +176,7 @@ function configureLevels(levels) { } function setGlobalLogLevel(level) { - if(level) { - Logger.prototype.level = levels.toLevel(level, levels.TRACE); - } + Logger.prototype.level = levels.toLevel(level, levels.TRACE); } /** @@ -204,7 +202,6 @@ function configureOnceOff(config, options) { try { configureAppenders(config.appenders, options); configureLevels(config.levels); - setGlobalLogLevel(config.globalLevel); if (config.replaceConsole) { replaceConsole();