summary refs log tree commit diff
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2021-10-07 12:43:25 +0100
committerGitHub <noreply@github.com>2021-10-07 11:43:25 +0000
commit96fe77c2546598449c1d423c125f84c92620b155 (patch)
tree88d6cd770503c63e379cc98815cc6418b4c749fe
parentAdd a comment in _process_received_pdu (#11011) (diff)
downloadsynapse-96fe77c2546598449c1d423c125f84c92620b155.tar.xz
Improve the logging in _auth_and_persist_outliers (#11010)
Include the event ids being peristed
-rw-r--r--changelog.d/11010.misc1
-rw-r--r--synapse/handlers/federation_event.py5
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)