Skip to content
Snippets Groups Projects
Commit ba1d7402 authored by David Baker's avatar David Baker
Browse files

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
...@@ -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']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment