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
|
#ifndef ERR_LEAN
|
||||||
|
if(level < 2) { /* only event level fatals and log level */
|
||||||
plugin_event_dispatch(PLUGIN_EVENT_LOG, level, errbuf, (int)strlen(errbuf)+1);
|
plugin_event_dispatch(PLUGIN_EVENT_LOG, level, errbuf, (int)strlen(errbuf)+1);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
_err_unlock();
|
_err_unlock();
|
||||||
|
|
Loading…
Reference in New Issue