diff --git a/fail2ban/server/filter.py b/fail2ban/server/filter.py index 9494b869d..5b9125edd 100644 --- a/fail2ban/server/filter.py +++ b/fail2ban/server/filter.py @@ -693,12 +693,12 @@ class Filter(JailThread): # Iterates over all the regular expressions. for failRegexIndex, failRegex in enumerate(self.__failRegex): if logSys.getEffectiveLevel() <= logging.HEAVYDEBUG: # pragma: no cover - logSys.log(5, " Looking for failregex %r", failRegex.getRegex()) + logSys.log(5, " Looking for failregex %d - %r", failRegexIndex, failRegex.getRegex()) failRegex.search(self.__lineBuffer, orgBuffer) if not failRegex.hasMatched(): continue # The failregex matched. - logSys.log(7, " Matched %s", failRegex) + logSys.log(7, " Matched failregex %d: %s", failRegexIndex, failRegex.getGroups()) # Checks if we must ignore this match. if self.ignoreLine(failRegex.getMatchedTupleLines()) \ is not None: