Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Merge pull request #4669 from matrix-org/erikj/log_exception
Browse files Browse the repository at this point in the history
Cleanup top level request exception logging
  • Loading branch information
erikjohnston authored Feb 18, 2019
2 parents d08bac4 + 12ae64c commit 028267a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions changelog.d/4669.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Cleanup request exception logging
6 changes: 3 additions & 3 deletions synapse/http/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,10 @@ def wrapped_request_handler(self, request):
# 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
Expand Down

0 comments on commit 028267a

Please sign in to comment.