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

Commit

Permalink
Improve the logging in _auth_and_persist_outliers (#11010)
Browse files Browse the repository at this point in the history
Include the event ids being peristed
  • Loading branch information
richvdh authored Oct 7, 2021
1 parent 86af6b2 commit 96fe77c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/11010.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Clean up some of the federation event authentication code for clarity.
5 changes: 4 additions & 1 deletion synapse/handlers/federation_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -1161,7 +1161,10 @@ async def _auth_and_persist_fetched_events(
return

logger.info(
"Persisting %i of %i remaining events", len(roots), len(event_map)
"Persisting %i of %i remaining outliers: %s",
len(roots),
len(event_map),
shortstr(e.event_id for e in roots),
)

await self._auth_and_persist_fetched_events_inner(origin, room_id, roots)
Expand Down

0 comments on commit 96fe77c

Please sign in to comment.