diff options
author | David Baker <dbkr@users.noreply.github.com> | 2015-12-07 12:44:15 +0000 |
---|---|---|
committer | David Baker <dbkr@users.noreply.github.com> | 2015-12-07 12:44:15 +0000 |
commit | 266df8a9b82a2d68ab32af71f503cce5d52c7eb9 (patch) | |
tree | bb00d376446e036259599a21b34fd740707f0495 /synapse/rest/client/v1/pusher.py | |
parent | Merge pull request #427 from matrix-org/markjh/log_context (diff) | |
parent | also do more structured logging (diff) | |
download | synapse-266df8a9b82a2d68ab32af71f503cce5d52c7eb9.tar.xz |
Merge pull request #428 from matrix-org/pusher_api_log
Add logging to pushers API to log the body of the request
Diffstat (limited to 'synapse/rest/client/v1/pusher.py')
-rw-r--r-- | synapse/rest/client/v1/pusher.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/synapse/rest/client/v1/pusher.py b/synapse/rest/client/v1/pusher.py index 6f465035b4..d6d1ad528e 100644 --- a/synapse/rest/client/v1/pusher.py +++ b/synapse/rest/client/v1/pusher.py @@ -20,6 +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): @@ -51,6 +54,9 @@ class PusherRestServlet(ClientV1RestServlet): raise SynapseError(400, "Missing parameters: "+','.join(missing), errcode=Codes.MISSING_PARAM) + logger.debug("set pushkey %s to kind %s", content['pushkey'], content['kind']) + logger.debug("Got pushers request with body: %r", content) + append = False if 'append' in content: append = content['append'] |