mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
don't display the traceback in the HTTP response
This commit is contained in:
parent
5ff75b194c
commit
feb86d3fb2
@ -190,10 +190,6 @@ class Worker(object):
|
||||
resp.response_length = len(mesg)
|
||||
self.log.access(resp, req, environ, request_time)
|
||||
|
||||
if self.debug:
|
||||
tb = traceback.format_exc()
|
||||
mesg += "<h2>Traceback:</h2>\n<pre>%s</pre>" % tb
|
||||
|
||||
try:
|
||||
util.write_error(client, status_int, reason, mesg)
|
||||
except:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user