Lower debug load by only event plugining level E_LOG or lower
This commit is contained in:
parent
23e5a964d5
commit
998fdcc9d0
|
@ -157,7 +157,9 @@ void err_log(int level, unsigned int cat, char *fmt, ...)
|
|||
}
|
||||
|
||||
#ifndef ERR_LEAN
|
||||
plugin_event_dispatch(PLUGIN_EVENT_LOG, level, errbuf, (int)strlen(errbuf)+1);
|
||||
if(level < 2) { /* only event level fatals and log level */
|
||||
plugin_event_dispatch(PLUGIN_EVENT_LOG, level, errbuf, (int)strlen(errbuf)+1);
|
||||
}
|
||||
#endif
|
||||
|
||||
_err_unlock();
|
||||
|
|
Loading…
Reference in New Issue