diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-07-20 13:21:33 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-07-20 13:21:33 +1200 |
commit | 03f4dcc02b87db6f881f7d334d64a2bd4dcad04c (patch) | |
tree | 1d1dc738acc9806657fd9ec0ed8ca5545b8a2540 /libpathod/pathod.py | |
parent | 76f0c3ea783dbb46540a3b77b13f7700e9639ea4 (diff) | |
download | mitmproxy-03f4dcc02b87db6f881f7d334d64a2bd4dcad04c.tar.gz mitmproxy-03f4dcc02b87db6f881f7d334d64a2bd4dcad04c.tar.bz2 mitmproxy-03f4dcc02b87db6f881f7d334d64a2bd4dcad04c.zip |
Extend test suite to cover SSL. Log SSL connection errors.
Diffstat (limited to 'libpathod/pathod.py')
-rw-r--r-- | libpathod/pathod.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libpathod/pathod.py b/libpathod/pathod.py index 1f4ff760..5eb91f7a 100644 --- a/libpathod/pathod.py +++ b/libpathod/pathod.py @@ -26,7 +26,14 @@ class PathodHandler(tcp.BaseHandler): self.server.ssloptions["keyfile"], ) except tcp.NetLibError, v: - self.info(v) + s = str(v) + self.server.add_log( + dict( + type = "error", + msg = s + ) + ) + self.info(s) self.finish() while not self.finished: |