Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
synapse
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maunium
synapse
Commits
4b4cec39
Commit
4b4cec39
authored
6 years ago
by
Erik Johnston
Committed by
Richard van der Hoff
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add some logging to search queries
parent
200e11c5
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
synapse/handlers/search.py
+9
-0
9 additions, 0 deletions
synapse/handlers/search.py
with
9 additions
and
0 deletions
synapse/handlers/search.py
+
9
−
0
View file @
4b4cec39
...
...
@@ -64,6 +64,13 @@ class SearchHandler(BaseHandler):
except
Exception
:
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
:
room_cat
=
content
[
"
search_categories
"
][
"
room_events
"
]
...
...
@@ -271,6 +278,8 @@ class SearchHandler(BaseHandler):
# We should never get here due to the guard earlier.
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
# events and state), fetch that
if
event_context
is
not
None
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment