From 9c4562c74a100676de32e99197c9508304c22ebe Mon Sep 17 00:00:00 2001 From: "Olivier Wilkinson (reivilibre)" Date: Mon, 19 Dec 2022 17:53:05 +0000 Subject: [PATCH] Add log lines --- synapse/handlers/e2e_keys.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/synapse/handlers/e2e_keys.py b/synapse/handlers/e2e_keys.py index 94de0c0377..003f147ca6 100644 --- a/synapse/handlers/e2e_keys.py +++ b/synapse/handlers/e2e_keys.py @@ -238,6 +238,9 @@ class E2eKeysHandler: # Now fetch any devices that we don't have in our cache # TODO It might make sense to propagate cancellations into the # deferreds which are querying remote homeservers. + logger.debug( + "%d destinations to query devices for", len(remote_queries_not_in_cache) + ) await make_deferred_yieldable( delay_cancellation( defer.gatherResults( @@ -310,6 +313,12 @@ class E2eKeysHandler: if (not device_list) and (await self.store.get_rooms_for_user(user_id)) } + logger.debug( + "%d users to resync devices for from destination %s", + len(users_to_resync_devices), + destination, + ) + for user_id in users_to_resync_devices: # We've decided we're sharing a room with this user and should # probably be tracking their device lists. However, we haven't