Commit 8e9eee45 authored by Denis Bilenko's avatar Denis Bilenko

http server: print server's string representation after the traceback in case of failure

parent c049e60c
......@@ -465,7 +465,7 @@ cdef void _http_cb_handler(evhttp_request* request, void *arg) with gil:
except:
traceback.print_exc()
try:
sys.stderr.write('Failed to handle request: %s\n\n' % (req, ))
sys.stderr.write('%s: Failed to handle request: %s\n\n' % (server, req, ))
except:
traceback.print_exc()
# without clearing exc_info a reference to the request is somehow leaked
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment