From f93a621856d68846c42825d011ff2fa762088d3f Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Tue, 24 Jul 2012 16:18:22 +1200 Subject: [PATCH] Only log real errors in WSGI apps. --- libmproxy/proxy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmproxy/proxy.py b/libmproxy/proxy.py index ed16d9ed5..032a7e5ed 100644 --- a/libmproxy/proxy.py +++ b/libmproxy/proxy.py @@ -159,8 +159,8 @@ class ProxyHandler(tcp.BaseHandler): app = self.server.apps.get(request) if app: err = app.serve(request, self.wfile) - self.log(cc, "Error in wsgi app.", err.split("\n")) if err: + self.log(cc, "Error in wsgi app.", err.split("\n")) return else: request = request._send(self.mqueue)