mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 18:18:25 +00:00
Only log real errors in WSGI apps.
This commit is contained in:
parent
84bffad3fc
commit
f93a621856
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user