summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
authorErik Johnston <erikj@jki.re>2019-02-25 17:26:30 +0000
committerGitHub <noreply@github.com>2019-02-25 17:26:30 +0000
commit65f3fbfbf75ab4877c75a99d4a11588117a9a433 (patch)
treeb20ba34cbab5e4c54f79382368010813dd3f0967 /synapse/handlers
parentMerge pull request #4718 from matrix-org/erikj/fix_backfill_state_shred (diff)
parentNewsfile (diff)
downloadsynapse-65f3fbfbf75ab4877c75a99d4a11588117a9a433.tar.xz
Merge pull request #4737 from matrix-org/erikj/failure_log_tb
Log tracebacks correctly
Diffstat (limited to 'synapse/handlers')
-rw-r--r--synapse/handlers/pagination.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/synapse/handlers/pagination.py b/synapse/handlers/pagination.py
index 084c1503da..e4fdae9266 100644
--- a/synapse/handlers/pagination.py
+++ b/synapse/handlers/pagination.py
@@ -136,7 +136,11 @@ class PaginationHandler(object):
             logger.info("[purge] complete")
             self._purges_by_id[purge_id].status = PurgeStatus.STATUS_COMPLETE
         except Exception:
-            logger.error("[purge] failed: %s", Failure().getTraceback().rstrip())
+            f = Failure()
+            logger.error(
+                "[purge] failed",
+                exc_info=(f.type, f.value, f.getTracebackObject()),
+            )
             self._purges_by_id[purge_id].status = PurgeStatus.STATUS_FAILED
         finally:
             self._purges_in_progress_by_room.discard(room_id)