Merge pull request #4669 from matrix-org/erikj/log_exception

Cleanup top level request exception logging
This commit is contained in:
Erik Johnston authored and GitHub committed 2019-02-18 16:41:41 +00:00
commit 028267acd2
2 files changed
+4 -3

No files matched your search

+1
View File
@@ -0,0 +1 @@
Cleanup request exception logging
+3 -3
View File
@@ -106,10 +106,10 @@ def wrap_json_request_handler(h):
# trace.
f = failure.Failure()
logger.error(
"Failed handle request via %r: %r: %s",
h,
"Failed handle request via %r: %r",
request.request_metrics.name,
request,
f.getTraceback().rstrip(),
exc_info=(f.type, f.value, f.getTracebackObject()),
)
# Only respond with an error response if we haven't already started
# writing, otherwise lets just kill the connection