summary refs log tree commit diff
diff options
context:
space:
mode:
-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"]
                 )