diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2021-10-07 12:43:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-07 11:43:25 +0000 |
commit | 96fe77c2546598449c1d423c125f84c92620b155 (patch) | |
tree | 88d6cd770503c63e379cc98815cc6418b4c749fe | |
parent | Add a comment in _process_received_pdu (#11011) (diff) | |
download | synapse-96fe77c2546598449c1d423c125f84c92620b155.tar.xz |
Improve the logging in _auth_and_persist_outliers (#11010)
Include the event ids being peristed
-rw-r--r-- | changelog.d/11010.misc | 1 | ||||
-rw-r--r-- | synapse/handlers/federation_event.py | 5 |
2 files changed, 5 insertions, 1 deletions
diff --git a/changelog.d/11010.misc b/changelog.d/11010.misc new file mode 100644 index 0000000000..9a765435db --- /dev/null +++ b/changelog.d/11010.misc @@ -0,0 +1 @@ +Clean up some of the federation event authentication code for clarity. diff --git a/synapse/handlers/federation_event.py b/synapse/handlers/federation_event.py index 0645ce9392..f640b417b3 100644 --- a/synapse/handlers/federation_event.py +++ b/synapse/handlers/federation_event.py @@ -1161,7 +1161,10 @@ class FederationEventHandler: 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) |