forked from extern/egroupware
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:
parent
e9731f5692
commit
22a5189783
@ -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);
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user