summary refs log tree commit diff
path: root/synapse/federation
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2022-09-01 14:54:52 +0200
committerGitHub <noreply@github.com>2022-09-01 13:54:52 +0100
commit2318603772f2e1595f9b39369246d5955a069381 (patch)
tree4f74b78dde28625895a36dab3ce7ba5c6a8b5153 /synapse/federation
parentReturn keys for unwhitelisted servers from `/_matrix/key/v2/query` (#13683) (diff)
downloadsynapse-2318603772f2e1595f9b39369246d5955a069381.tar.xz
Add some logging to help track down #13444 (#13679)
Diffstat (limited to 'synapse/federation')
-rw-r--r--synapse/federation/sender/__init__.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/synapse/federation/sender/__init__.py b/synapse/federation/sender/__init__.py
index 94a65ac65f..8bc60e3e3e 100644
--- a/synapse/federation/sender/__init__.py
+++ b/synapse/federation/sender/__init__.py
@@ -441,6 +441,19 @@ class FederationSender(AbstractFederationSender):
                             destinations = await self._external_cache.get(
                                 "get_joined_hosts", str(sg)
                             )
+                            if destinations is None:
+                                # Add logging to help track down #13444
+                                logger.info(
+                                    "Unexpectedly did not have cached destinations for %s / %s",
+                                    sg,
+                                    event.event_id,
+                                )
+                        else:
+                            # Add logging to help track down #13444
+                            logger.info(
+                                "Unexpectedly did not have cached prev group for %s",
+                                event.event_id,
+                            )
 
                     if destinations is None:
                         try: