Filter upstream timed out events from log2zulip.

(imported from commit 7a18d7f7ea6cc1be90d436c651eb4bb85598cec9)
This commit is contained in:
Tim Abbott 2014-01-16 16:51:16 -05:00
parent cc6e16b2d1
commit 2aef11b064

View file

@ -39,6 +39,8 @@ def process_lines(raw_lines, file_name):
lines = []
for line in raw_lines:
# Add any filtering or modification code here
if re.match(".*upstream timed out.*while reading upstream.*", line):
continue
lines.append(line)
if len(lines) > 10: