Also log number of events for serach context

This commit is contained in:
Erik Johnston 2018-05-22 17:26:46 +01:00 committed by Richard van der Hoff
parent 4b4cec3989
commit 28ddc6cfbe

View File

@ -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"]
)