mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
ENH: Added traceback for error log on pyinotify callback when in debug
Thanks to Helmut Grohne for idea on #fail2ban IRC
This commit is contained in:
parent
bda9b7d725
commit
1e9910fcb0
1 changed files with 2 additions and 1 deletions
|
|
@ -212,4 +212,5 @@ class ProcessPyinotify(pyinotify.ProcessEvent):
|
|||
try:
|
||||
self.__FileFilter.callback(event, origin='Default ')
|
||||
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 a new issue