diff options
author | Erik Johnston <erikj@jki.re> | 2019-02-25 17:26:30 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-25 17:26:30 +0000 |
commit | 65f3fbfbf75ab4877c75a99d4a11588117a9a433 (patch) | |
tree | b20ba34cbab5e4c54f79382368010813dd3f0967 /synapse/federation/federation_server.py | |
parent | Merge pull request #4718 from matrix-org/erikj/fix_backfill_state_shred (diff) | |
parent | Newsfile (diff) | |
download | synapse-65f3fbfbf75ab4877c75a99d4a11588117a9a433.tar.xz |
Merge pull request #4737 from matrix-org/erikj/failure_log_tb
Log tracebacks correctly
Diffstat (limited to 'synapse/federation/federation_server.py')
-rw-r--r-- | synapse/federation/federation_server.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/synapse/federation/federation_server.py b/synapse/federation/federation_server.py index e44342bc85..569eb277a9 100644 --- a/synapse/federation/federation_server.py +++ b/synapse/federation/federation_server.py @@ -240,8 +240,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( |