INFO log when we drop a message in message_filter.py

This commit is contained in:
jesopo 2019-06-10 15:02:20 +01:00
parent 8135f871c3
commit 87a01dac95

View file

@ -26,6 +26,8 @@ class Module(ModuleManager.BaseModule):
filters = self._get_filters(event["server"], target)
for filter in filters:
if re.search(filter, message):
self.log.info("Message matched filter, dropping: %s"
% event["line"].format())
event["line"].invalidate()
break