Commit 1057491e authored by Lars Kruse's avatar Lars Kruse

disable "multiple messages suppressed" in debug mode

parent ddf06eb2
...@@ -118,7 +118,8 @@ class RepetitionsFilter(logging.Filter): ...@@ -118,7 +118,8 @@ class RepetitionsFilter(logging.Filter):
record.getMessage().startswith( record.getMessage().startswith(
self._last_record.getMessage()[:self._cmp_len]) self._last_record.getMessage()[:self._cmp_len])
similarity = "similar" similarity = "similar"
if message_equal and (now - self._last_timestamp <= self._delay): if not is_debug() and \
(message_equal and (now - self._last_timestamp <= self._delay)):
self._suppressed_messages_counter += 1 self._suppressed_messages_counter += 1
return False return False
else: else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment