mirror of
https://mau.dev/maunium/synapse.git
synced 2024-09-05 17:12:37 +00:00
Merge pull request #428 from matrix-org/pusher_api_log
Add logging to pushers API to log the body of the request
This commit is contained in:
commit
266df8a9b8
@ -20,6 +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):
|
||||||
@ -51,6 +54,9 @@ 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("set pushkey %s to kind %s", content['pushkey'], content['kind'])
|
||||||
|
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']
|
||||||
|
Loading…
Reference in New Issue
Block a user