minimize log output in trace case (index instead of full-regexp by "matched" log-line)

pull/2087/head
sebres 7 years ago
parent a3739bbf27
commit ce6ca0029a

@ -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:

Loading…
Cancel
Save