aboutsummaryrefslogtreecommitdiffstats
path: root/libpathod/pathod.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2015-06-08 14:01:04 +1200
committerAldo Cortesi <aldo@nullcube.com>2015-06-08 14:01:04 +1200
commitaf22814bc34ab9521def8d190e555364b93dc8be (patch)
treee4fd578d5575b875bfbebe7bf4889452e99e89b0 /libpathod/pathod.py
parent7dff8f0dca936a58070f6957ab84ca15aa10076a (diff)
downloadmitmproxy-af22814bc34ab9521def8d190e555364b93dc8be.tar.gz
mitmproxy-af22814bc34ab9521def8d190e555364b93dc8be.tar.bz2
mitmproxy-af22814bc34ab9521def8d190e555364b93dc8be.zip
Revamp error logging somewhat
Diffstat (limited to 'libpathod/pathod.py')
-rw-r--r--libpathod/pathod.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/libpathod/pathod.py b/libpathod/pathod.py
index 991d3ae8..3c42573d 100644
--- a/libpathod/pathod.py
+++ b/libpathod/pathod.py
@@ -304,9 +304,10 @@ class PathodHandler(tcp.BaseHandler):
)])
if anchor_gen:
- lg("crafting spec: %s" % anchor_gen)
+ spec = anchor_gen.next()
+ lg("crafting spec: %s" % spec)
nexthandler, retlog["response"] = self.http_serve_crafted(
- anchor_gen.next()
+ spec
)
if nexthandler and websocket_key:
return self.handle_websocket, retlog