summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erikj@jki.re>2019-02-18 16:41:41 +0000
committerGitHub <noreply@github.com>2019-02-18 16:41:41 +0000
commit028267acd244f7d4f6a53601bc0388734b4b385e (patch)
tree35f1c313356f9f28739ef28fb48d4f794d067b72 /synapse
parentMerge pull request #4651 from matrix-org/matthew/well-known-cors (diff)
parentNewsfile (diff)
downloadsynapse-028267acd244f7d4f6a53601bc0388734b4b385e.tar.xz
Merge pull request #4669 from matrix-org/erikj/log_exception
Cleanup top level request exception logging
Diffstat (limited to 'synapse')
-rw-r--r--synapse/http/server.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/http/server.py b/synapse/http/server.py
index 6a427d96a6..6c67a25a11 100644
--- a/synapse/http/server.py
+++ b/synapse/http/server.py
@@ -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