diff options
author | Erik Johnston <erik@matrix.org> | 2018-05-22 17:21:18 +0100 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2018-06-22 15:42:11 +0100 |
commit | 4b4cec3989517e736b7054eabd5f548a5a32a33d (patch) | |
tree | e583579a67e5286f6eab4aca648d9e32d431468d /synapse/handlers/search.py | |
parent | Merge pull request #3432 from matrix-org/rav/joined_hosts_cache_non_iterable (diff) | |
download | synapse-4b4cec3989517e736b7054eabd5f548a5a32a33d.tar.xz |
Add some logging to search queries
Diffstat (limited to 'synapse/handlers/search.py')
-rw-r--r-- | synapse/handlers/search.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/synapse/handlers/search.py b/synapse/handlers/search.py index 1eca26aa1e..df3022fdba 100644 --- a/synapse/handlers/search.py +++ b/synapse/handlers/search.py @@ -64,6 +64,13 @@ class SearchHandler(BaseHandler): except Exception: raise SynapseError(400, "Invalid batch") + logger.info( + "Search batch properties: %r, %r, %r", + batch_group, batch_group_key, batch_token, + ) + + logger.info("Search content: %s", content) + try: room_cat = content["search_categories"]["room_events"] @@ -271,6 +278,8 @@ class SearchHandler(BaseHandler): # We should never get here due to the guard earlier. raise NotImplementedError() + logger.info("Found %d events to return", len(allowed_events)) + # If client has asked for "context" for each event (i.e. some surrounding # events and state), fetch that if event_context is not None: |