summary refs log tree commit diff
path: root/synapse/rest
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2015-12-07 11:52:20 +0000
committerDavid Baker <dave@matrix.org>2015-12-07 11:52:20 +0000
commitba1d740239530e1b2526bdf4e7f6cd2289a3c036 (patch)
tree05ac2143eb46ff6e59b4f8390449595093100231 /synapse/rest
parentMerge pull request #427 from matrix-org/markjh/log_context (diff)
downloadsynapse-ba1d740239530e1b2526bdf4e7f6cd2289a3c036.tar.xz
Add logging to pushers API to log the body of the request
Diffstat (limited to 'synapse/rest')
-rw-r--r--synapse/rest/client/v1/pusher.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/synapse/rest/client/v1/pusher.py b/synapse/rest/client/v1/pusher.py
index 6f465035b4..c0f3c5a109 100644
--- a/synapse/rest/client/v1/pusher.py
+++ b/synapse/rest/client/v1/pusher.py
@@ -20,7 +20,9 @@ from synapse.push import PusherConfigException
 from .base import ClientV1RestServlet, client_path_patterns
 
 import simplejson as json
+import logging
 
+logger = logging.getLogger(__name__)
 
 class PusherRestServlet(ClientV1RestServlet):
     PATTERNS = client_path_patterns("/pushers/set$")
@@ -51,6 +53,8 @@ class PusherRestServlet(ClientV1RestServlet):
             raise SynapseError(400, "Missing parameters: "+','.join(missing),
                                errcode=Codes.MISSING_PARAM)
 
+        logger.debug("Got pushers request with body: %r", content)
+
         append = False
         if 'append' in content:
             append = content['append']