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
ba1d7402
Commit
ba1d7402
authored
9 years ago
by
David Baker
Browse files
Options
Downloads
Patches
Plain Diff
Add logging to pushers API to log the body of the request
parent
a190b2e8
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/rest/client/v1/pusher.py
+4
-0
4 additions, 0 deletions
synapse/rest/client/v1/pusher.py
with
4 additions
and
0 deletions
synapse/rest/client/v1/pusher.py
+
4
−
0
View file @
ba1d7402
...
@@ -20,7 +20,9 @@ from synapse.push import PusherConfigException
...
@@ -20,7 +20,9 @@ from synapse.push import PusherConfigException
from
.base
import
ClientV1RestServlet
,
client_path_patterns
from
.base
import
ClientV1RestServlet
,
client_path_patterns
import
simplejson
as
json
import
simplejson
as
json
import
logging
logger
=
logging
.
getLogger
(
__name__
)
class
PusherRestServlet
(
ClientV1RestServlet
):
class
PusherRestServlet
(
ClientV1RestServlet
):
PATTERNS
=
client_path_patterns
(
"
/pushers/set$
"
)
PATTERNS
=
client_path_patterns
(
"
/pushers/set$
"
)
...
@@ -51,6 +53,8 @@ class PusherRestServlet(ClientV1RestServlet):
...
@@ -51,6 +53,8 @@ class PusherRestServlet(ClientV1RestServlet):
raise
SynapseError
(
400
,
"
Missing parameters:
"
+
'
,
'
.
join
(
missing
),
raise
SynapseError
(
400
,
"
Missing parameters:
"
+
'
,
'
.
join
(
missing
),
errcode
=
Codes
.
MISSING_PARAM
)
errcode
=
Codes
.
MISSING_PARAM
)
logger
.
debug
(
"
Got pushers request with body: %r
"
,
content
)
append
=
False
append
=
False
if
'
append
'
in
content
:
if
'
append
'
in
content
:
append
=
content
[
'
append
'
]
append
=
content
[
'
append
'
]
...
...
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