summaryrefslogtreecommitdiff
path: root/crocoite/warc.py
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2019-01-07 10:41:45 +0100
committerLars-Dominik Braun <lars@6xq.net>2019-01-07 10:41:45 +0100
commit3a2fcc69a8eb4237b2862b3e291971d38748f115 (patch)
treef7918781bc17ee4abea810271e1ee50a4b2b3b80 /crocoite/warc.py
parent73c0647fd35a6ca07bf53a987d6be7ef1055cf43 (diff)
downloadcrocoite-3a2fcc69a8eb4237b2862b3e291971d38748f115.tar.gz
crocoite-3a2fcc69a8eb4237b2862b3e291971d38748f115.tar.bz2
crocoite-3a2fcc69a8eb4237b2862b3e291971d38748f115.zip
Log Chrome’s responses to WARC by default
We may not be able to reproduce every failure, so logging as much as possible is important to figure out what went wrong. Also, in case a bug is uncovered in the future, we can check the logs and possibly fix it with -errata.
Diffstat (limited to 'crocoite/warc.py')
-rw-r--r--crocoite/warc.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/crocoite/warc.py b/crocoite/warc.py
index cb1f2f7..4106995 100644
--- a/crocoite/warc.py
+++ b/crocoite/warc.py
@@ -242,13 +242,8 @@ class WarcHandler (EventHandler):
}
def push (self, item):
- processed = False
for k, v in self.route.items ():
if isinstance (item, k):
v (self, item)
- processed = True
break
- if not processed:
- self.logger.debug (f'unknown event {item!r}')
-