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)
|
app = self.server.apps.get(request)
|
||||||
if app:
|
if app:
|
||||||
err = app.serve(request, self.wfile)
|
err = app.serve(request, self.wfile)
|
||||||
self.log(cc, "Error in wsgi app.", err.split("\n"))
|
|
||||||
if err:
|
if err:
|
||||||
|
self.log(cc, "Error in wsgi app.", err.split("\n"))
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
request = request._send(self.mqueue)
|
request = request._send(self.mqueue)
|
||||||
|
Loading…
Reference in New Issue
Block a user