Lower debug load by only event plugining level E_LOG or lower

This commit is contained in:
Ron Pedde 2006-06-04 03:36:27 +00:00
parent 23e5a964d5
commit 998fdcc9d0
1 changed files with 3 additions and 1 deletions

View File

@ -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();