mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-08 08:12:13 -04:00
Add logging and fix log contexts for publicRooms
This commit is contained in:
parent
9e2c22c97f
commit
33a9026cdf
2 changed files with 4 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue