summary refs log tree commit diff
path: root/synapse/handlers/search.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2018-05-22 17:26:46 +0100
committerRichard van der Hoff <richard@matrix.org>2018-06-22 15:42:11 +0100
commit28ddc6cfbec665db33dd689806f61010095c13ba (patch)
treec232a81f9354fe3adb87b24c444832b1bb3a5dd6 /synapse/handlers/search.py
parentAdd some logging to search queries (diff)
downloadsynapse-28ddc6cfbec665db33dd689806f61010095c13ba.tar.xz
Also log number of events for serach context
Diffstat (limited to 'synapse/handlers/search.py')
-rw-r--r--synapse/handlers/search.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/synapse/handlers/search.py b/synapse/handlers/search.py
index df3022fdba..2e3a77ca4b 100644
--- a/synapse/handlers/search.py
+++ b/synapse/handlers/search.py
@@ -291,6 +291,11 @@ class SearchHandler(BaseHandler):
                     event.room_id, event.event_id, before_limit, after_limit
                 )
 
+                logger.info(
+                    "Context for search returned %d and %d events",
+                    len(res["events_before"]), len(res["events_after"]),
+                )
+
                 res["events_before"] = yield filter_events_for_client(
                     self.store, user.to_string(), res["events_before"]
                 )