Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit a711ae7

Browse files
authored
Add logging to /sync for debugging #11916 (#12068)
1 parent 64c73c6 commit a711ae7

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

changelog.d/12068.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add some logging to `/sync` to try and track down #11916.

synapse/handlers/sync.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -697,6 +697,15 @@ async def get_state_at(
697697
else:
698698
# no events in this room - so presumably no state
699699
state = {}
700+
701+
# (erikj) This should be rarely hit, but we've had some reports that
702+
# we get more state down gappy syncs than we should, so let's add
703+
# some logging.
704+
logger.info(
705+
"Failed to find any events in room %s at %s",
706+
room_id,
707+
stream_position.room_key,
708+
)
700709
return state
701710

702711
async def compute_summary(

0 commit comments

Comments
 (0)