From afe34e8b28988bdff91123862194606152c03c33 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Thu, 1 Sep 2016 12:32:09 +1200 Subject: Improve the way we handle upstream errors - Don't log a traceback for either HTTP or HTTPS DNS resolution or TCP connection errors. These are "ordinary" errors, not mitmproxy issues. - Ensure that the error handler is correctly called for SSL-related protocol errors. --- examples/flowbasic | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/flowbasic') diff --git a/examples/flowbasic b/examples/flowbasic index 2e3458b1..67c6f596 100755 --- a/examples/flowbasic +++ b/examples/flowbasic @@ -32,8 +32,8 @@ class MyMaster(flow.FlowMaster): print("error", f) @controller.handler - def log(self, f): - print("log", f) + def log(self, l): + print("log", l.msg) opts = options.Options(cadir="~/.mitmproxy/") config = ProxyConfig(opts) -- cgit v1.2.3