warn if we ignore device lists

pull/4443/head
Matthew Hodgson 2019-01-15 22:10:44 +00:00
parent b43172ffbc
commit 5cb15c0443
1 changed files with 4 additions and 0 deletions

View File

@ -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(