diff options
author | Matthew Hodgson <matthew@matrix.org> | 2019-01-15 22:10:44 +0000 |
---|---|---|
committer | Matthew Hodgson <matthew@matrix.org> | 2019-01-15 22:10:44 +0000 |
commit | a5733a649a59cb525d6eae1a33f33548e2978906 (patch) | |
tree | a6c0a5ac75cd1e3e377281aac33723360d374ee9 | |
parent | drop the limit to 1K as e2e will be hosed beyond that point anyway (diff) | |
download | synapse-github/matthew/bodge_device_update_dos.tar.xz |
warn if we ignore device lists github/matthew/bodge_device_update_dos matthew/bodge_device_update_dos
-rw-r--r-- | synapse/handlers/device.py | 4 |
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( |