mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +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);
|
_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