summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthew Hodgson <matthew@matrix.org>2019-01-15 22:10:44 +0000
committerMatthew Hodgson <matthew@matrix.org>2019-01-15 22:11:46 +0000
commit5cb15c0443c6258056b9dcaa8c28bcce5fbb312e (patch)
treecc835e895f2eec0f04d351ad8c54455e73646bc4
parentMerge pull request #4396 from matrix-org/matthew/bodge_device_update_dos (diff)
downloadsynapse-5cb15c0443c6258056b9dcaa8c28bcce5fbb312e.tar.xz
warn if we ignore device lists
-rw-r--r--synapse/handlers/device.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/synapse/handlers/device.py b/synapse/handlers/device.py

index a93dfd1d63..8955cde4ed 100644 --- a/synapse/handlers/device.py +++ b/synapse/handlers/device.py
@@ -545,6 +545,10 @@ class DeviceListEduUpdater(object): # up on storing the total list of devices and only handle the # delta instead. if len(devices) > 1000: + logger.warn( + "Ignoring device list snapshot for %s as it has >1K devs (%d)", + user_id, len(devices) + ) devices = [] yield self.store.update_remote_device_list_cache(