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

Commit

Permalink
Add logging to /sync for debugging #11916
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston committed Feb 23, 2022
1 parent 64c73c6 commit e085867
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions synapse/handlers/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -697,6 +697,15 @@ async def get_state_at(
else:
# no events in this room - so presumably no state
state = {}

# (erikj) This should be rarely hit, but we've had some reports that
# we get more state down gappy syncs than we should, so let's add
# some logging.
logger.info(
"Failed to find any events in room %s at %s",
room_id,
stream_position.room_key,
)
return state

async def compute_summary(
Expand Down

0 comments on commit e085867

Please sign in to comment.