Also log number of events for serach context

pull/3434/head
Erik Johnston 2018-05-22 17:26:46 +01:00 committed by Richard van der Hoff
parent 4b4cec3989
commit 28ddc6cfbe
1 changed files with 5 additions and 0 deletions

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