mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:20 +01:00
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
f1283fcf71
commit
6be491d6eb
@ -356,13 +356,12 @@ egw.extend('debug', egw.MODULE_GLOBAL, function(_app, _wnd) {
|
||||
_wnd.console.error.apply(_wnd.console, args);
|
||||
}
|
||||
}
|
||||
// raise errors to user
|
||||
if (_level == "error") raise_error(args);
|
||||
// raise errors to user, if LOCAL_LOG_LEVEL > 0
|
||||
if (LOCAL_LOG_LEVEL_level == "error") raise_error(args);
|
||||
|
||||
// log to html5 localStorage
|
||||
if (typeof stack != 'undefined') args.pop(); // remove stacktrace again
|
||||
log_on_client(_level, args);
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user