summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2022-05-21 17:10:54 +0100
committerErik Johnston <erik@matrix.org>2022-05-21 17:10:54 +0100
commit9319bf036cad1479aeda0b9500357355b8e87782 (patch)
tree3cd77cd5c1a369266dad11e5394fa84e81c27b91
parentDon't pull out state for catchup (diff)
downloadsynapse-9319bf036cad1479aeda0b9500357355b8e87782.tar.xz
Log when we get state at sync
-rw-r--r--synapse/handlers/sync.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/synapse/handlers/sync.py b/synapse/handlers/sync.py
index 59b5d497be..a93162fb73 100644
--- a/synapse/handlers/sync.py
+++ b/synapse/handlers/sync.py
@@ -18,6 +18,8 @@ from typing import TYPE_CHECKING, Any, Dict, FrozenSet, List, Optional, Set, Tup
 import attr
 from prometheus_client import Counter
 
+from twisted.python import failure
+
 from synapse.api.constants import EventTypes, Membership, ReceiptTypes
 from synapse.api.filtering import FilterCollection
 from synapse.api.presence import UserPresenceState
@@ -643,6 +645,13 @@ class SyncHandler:
             event: event of interest
             state_filter: The state filter used to fetch state from the database.
         """
+        f = failure.Failure()
+        logger.info(
+            "SYNC get_state_after_event in room %s",
+            event.room_id,
+            exc_info=(f.type, f.value, f.getTracebackObject()),  # type: ignore
+        )
+
         state_ids = await self.state_store.get_state_ids_for_event(
             event.event_id, state_filter=state_filter or StateFilter.all()
         )