Add some logging to search queries
This commit is contained in:
parent
200e11c5bf
commit
4b4cec3989
|
@ -64,6 +64,13 @@ class SearchHandler(BaseHandler):
|
||||||
except Exception:
|
except Exception:
|
||||||
raise SynapseError(400, "Invalid batch")
|
raise SynapseError(400, "Invalid batch")
|
||||||
|
|
||||||
|
logger.info(
|
||||||
|
"Search batch properties: %r, %r, %r",
|
||||||
|
batch_group, batch_group_key, batch_token,
|
||||||
|
)
|
||||||
|
|
||||||
|
logger.info("Search content: %s", content)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
room_cat = content["search_categories"]["room_events"]
|
room_cat = content["search_categories"]["room_events"]
|
||||||
|
|
||||||
|
@ -271,6 +278,8 @@ class SearchHandler(BaseHandler):
|
||||||
# We should never get here due to the guard earlier.
|
# We should never get here due to the guard earlier.
|
||||||
raise NotImplementedError()
|
raise NotImplementedError()
|
||||||
|
|
||||||
|
logger.info("Found %d events to return", len(allowed_events))
|
||||||
|
|
||||||
# If client has asked for "context" for each event (i.e. some surrounding
|
# If client has asked for "context" for each event (i.e. some surrounding
|
||||||
# events and state), fetch that
|
# events and state), fetch that
|
||||||
if event_context is not None:
|
if event_context is not None:
|
||||||
|
|
Loading…
Reference in New Issue