summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2023-03-29 14:37:06 +0100
committerGitHub <noreply@github.com>2023-03-29 13:37:06 +0000
commitf0d8f66eaaacfa75bed65bc5d0c602fbc5339c85 (patch)
treeec056eecace1f460480e0e7334287dc876d82cf4 /synapse/handlers
parentRevert "Reintroduce membership tables event stream ordering (#15128)" (#15347) (diff)
downloadsynapse-f0d8f66eaaacfa75bed65bc5d0c602fbc5339c85.tar.xz
Fix registering a device on an account with lots of devices (#15348)
Fixes up #15183
Diffstat (limited to 'synapse/handlers')
-rw-r--r--synapse/handlers/register.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/handlers/register.py b/synapse/handlers/register.py
index bb1df1e60f..7e9d065f50 100644
--- a/synapse/handlers/register.py
+++ b/synapse/handlers/register.py
@@ -946,6 +946,8 @@ class RegistrationHandler:
         if not device_ids:
             return
 
+        logger.info("Pruning %d stale devices for %s", len(device_ids), user_id)
+
         # Now spawn a background loop that deletes said devices.
         async def _prune_too_many_devices_loop() -> None:
             if user_id in self._currently_pruning_devices_for_users: