diff options
author | Erik Johnston <erik@matrix.org> | 2017-06-07 11:50:44 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2017-06-07 11:50:44 +0100 |
commit | 2f34ad31ac1e5bdc1ddc38ee3f5149bcc4c6e663 (patch) | |
tree | 09d54cb87da08f1f91cdafffec32bb37a82e0d5c | |
parent | Merge pull request #2256 from matrix-org/erikj/faster_device_updates (diff) | |
download | synapse-2f34ad31ac1e5bdc1ddc38ee3f5149bcc4c6e663.tar.xz |
Add some logging to user directory
Diffstat (limited to '')
-rw-r--r-- | synapse/handlers/user_directory.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/synapse/handlers/user_directory.py b/synapse/handlers/user_directory.py index 0182cf86d6..4e568de8c4 100644 --- a/synapse/handlers/user_directory.py +++ b/synapse/handlers/user_directory.py @@ -130,8 +130,15 @@ class UserDirectoyHandler(object): # We process by going through each existing room at a time. room_ids = yield self.store.get_all_rooms() + logger.info("Doing initial update of user directory. %d rooms", len(room_ids)) + num_processed_rooms = 1 + for room_id in room_ids: + logger.info("Handling room %d/%d", num_processed_rooms, len(room_ids)) yield self._handle_intial_room(room_id) + num_processed_rooms += 1 + + logger.info("Processed all rooms.") self.initially_handled_users = None |