fix application of log level change.

it seems that the bug was introduced by commit
8d5d2c8230.
This commit is contained in:
YAMAMOTO Takashi 2012-09-06 11:30:16 +09:00
parent cbb55df039
commit 22d56932d6
1 changed files with 8 additions and 5 deletions

View File

@ -37,11 +37,14 @@ if (!window.$D) {
*/ */
// init log level reading the logging HTTP param // init log level reading the logging HTTP param
WebUtil.init_logging = function() { WebUtil.init_logging = function(level) {
Util._log_level = (document.location.href.match( if (typeof level === 'undefined') {
/logging=([A-Za-z0-9\._\-]*)/) || Util._log_level = (document.location.href.match(
['', Util._log_level])[1]; /logging=([A-Za-z0-9\._\-]*)/) ||
['', Util._log_level])[1];
} else {
Util._log_level = level;
}
Util.init_logging(); Util.init_logging();
}; };
WebUtil.init_logging(); WebUtil.init_logging();