Only log real errors in WSGI apps.

This commit is contained in:
Aldo Cortesi 2012-07-24 16:18:22 +12:00
parent 84bffad3fc
commit f93a621856

View File

@ -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)