diff options
author | Erik Johnston <erik@matrix.org> | 2018-05-22 17:26:46 +0100 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2018-06-22 15:42:11 +0100 |
commit | 28ddc6cfbec665db33dd689806f61010095c13ba (patch) | |
tree | c232a81f9354fe3adb87b24c444832b1bb3a5dd6 /synapse/handlers/search.py | |
parent | Add some logging to search queries (diff) | |
download | synapse-28ddc6cfbec665db33dd689806f61010095c13ba.tar.xz |
Also log number of events for serach context
Diffstat (limited to 'synapse/handlers/search.py')
-rw-r--r-- | synapse/handlers/search.py | 5 |
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"] ) |