stop egw.debug("error",...) to show error to user, if LOCAL_LOG_LEVEL=0, which we currently set in source

This commit is contained in:
Ralf Becker 2014-10-01 10:35:36 +00:00
parent e9731f5692
commit 22a5189783

View File

@ -356,13 +356,12 @@ egw.extend('debug', egw.MODULE_GLOBAL, function(_app, _wnd) {
_wnd.console.error.apply(_wnd.console, args); _wnd.console.error.apply(_wnd.console, args);
} }
} }
// raise errors to user // raise errors to user, if LOCAL_LOG_LEVEL > 0
if (_level == "error") raise_error(args); if (LOCAL_LOG_LEVEL_level == "error") raise_error(args);
// log to html5 localStorage // log to html5 localStorage
if (typeof stack != 'undefined') args.pop(); // remove stacktrace again if (typeof stack != 'undefined') args.pop(); // remove stacktrace again
log_on_client(_level, args); log_on_client(_level, args);
}, },
/** /**