mirror of https://github.com/fail2ban/fail2ban
BF: Add handling of exception in pyinotify callback
If error isn't handled, no error messages are printed and the jail ceases to function.pull/38/merge
parent
fb557761e4
commit
bda9b7d725
|
@ -209,4 +209,7 @@ class ProcessPyinotify(pyinotify.ProcessEvent):
|
||||||
|
|
||||||
# just need default, since using mask on watch to limit events
|
# just need default, since using mask on watch to limit events
|
||||||
def process_default(self, event):
|
def process_default(self, event):
|
||||||
self.__FileFilter.callback(event, origin='Default ')
|
try:
|
||||||
|
self.__FileFilter.callback(event, origin='Default ')
|
||||||
|
except Exception as e:
|
||||||
|
logSys.error("Error in FilterPyinotify callback: %s", e)
|
||||||
|
|
Loading…
Reference in New Issue