summary refs log tree commit diff
path: root/synapse/federation
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-02-25 16:56:41 +0000
committerErik Johnston <erik@matrix.org>2019-02-25 16:56:41 +0000
commitc7b333c545adf8958ec97771e6816ceb5e83f524 (patch)
tree10dcdfdeb960401fe287012cda2aaf346ebb6838 /synapse/federation
parentMerge pull request #4723 from matrix-org/erikj/frontend_proxy_exception (diff)
downloadsynapse-c7b333c545adf8958ec97771e6816ceb5e83f524.tar.xz
Log tracebacks correctly
Diffstat (limited to 'synapse/federation')
-rw-r--r--synapse/federation/federation_server.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/synapse/federation/federation_server.py b/synapse/federation/federation_server.py
index 3da86d4ba6..8f45c2badf 100644
--- a/synapse/federation/federation_server.py
+++ b/synapse/federation/federation_server.py
@@ -239,8 +239,9 @@ class FederationServer(FederationBase):
                         f = failure.Failure()
                         pdu_results[event_id] = {"error": str(e)}
                         logger.error(
-                            "Failed to handle PDU %s: %s",
-                            event_id, f.getTraceback().rstrip(),
+                            "Failed to handle PDU %s",
+                            event_id,
+                            exc_info=(f.type, f.value, f.getTracebackObject()),
                         )
 
         yield concurrently_execute(