diff options
author | Erik Johnston <erik@matrix.org> | 2017-10-25 10:26:06 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2017-10-25 10:26:06 +0100 |
commit | 33a9026cdf19dc13a3492e838f0893755d380981 (patch) | |
tree | 10ad83ff6e0d1121bd8973d0088e70d2c48ac47e /synapse/handlers/room_list.py | |
parent | Merge pull request #2567 from matrix-org/erikj/group_fed_update_profile (diff) | |
download | synapse-33a9026cdf19dc13a3492e838f0893755d380981.tar.xz |
Add logging and fix log contexts for publicRooms
Diffstat (limited to 'synapse/handlers/room_list.py')
-rw-r--r-- | synapse/handlers/room_list.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/handlers/room_list.py b/synapse/handlers/room_list.py index 41e1781df7..ae7c611170 100644 --- a/synapse/handlers/room_list.py +++ b/synapse/handlers/room_list.py @@ -70,6 +70,7 @@ class RoomListHandler(BaseHandler): if search_filter: # We explicitly don't bother caching searches or requests for # appservice specific lists. + logger.info("Bypassing cache as search request.") return self._get_public_room_list( limit, since_token, search_filter, network_tuple=network_tuple, ) @@ -77,6 +78,7 @@ class RoomListHandler(BaseHandler): key = (limit, since_token, network_tuple) result = self.response_cache.get(key) if not result: + logger.info("No cached result, calculating one.") result = self.response_cache.set( key, self._get_public_room_list( |