mirror of https://github.com/fail2ban/fail2ban
ENH: Added traceback for error log on pyinotify callback when in debug
Thanks to Helmut Grohne for idea on #fail2ban IRCpull/38/merge
parent
bda9b7d725
commit
1e9910fcb0
|
@ -212,4 +212,5 @@ class ProcessPyinotify(pyinotify.ProcessEvent):
|
||||||
try:
|
try:
|
||||||
self.__FileFilter.callback(event, origin='Default ')
|
self.__FileFilter.callback(event, origin='Default ')
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logSys.error("Error in FilterPyinotify callback: %s", e)
|
logSys.error("Error in FilterPyinotify callback: %s",
|
||||||
|
e, exc_info=logSys.getEffectiveLevel() <= logging.DEBUG)
|
||||||
|
|
Loading…
Reference in New Issue