Add logging to /sync for debugging #11916 (#12068)

This commit is contained in:
Erik Johnston 2022-02-23 14:22:22 +00:00 committed by GitHub
parent 64c73c6ac8
commit a711ae78a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

1
changelog.d/12068.misc Normal file
View File

@ -0,0 +1 @@
Add some logging to `/sync` to try and track down #11916.

View File

@ -697,6 +697,15 @@ class SyncHandler:
else: else:
# no events in this room - so presumably no state # no events in this room - so presumably no state
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 return state
async def compute_summary( async def compute_summary(