diff options
author | Erik Johnston <erik@matrix.org> | 2015-06-15 17:11:44 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-06-15 17:11:44 +0100 |
commit | cee69441d3d3b4d966b6ec69c7dbf4eb3b876bb3 (patch) | |
tree | aed730c6d9d10710be309b422bf411447e3decfc /synapse/http | |
parent | Create SynapseRequest that overrides __repr__ to not print access_token (diff) | |
download | synapse-cee69441d3d3b4d966b6ec69c7dbf4eb3b876bb3.tar.xz |
Log more when we have processed the request
Diffstat (limited to 'synapse/http')
-rw-r--r-- | synapse/http/server.py | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/synapse/http/server.py b/synapse/http/server.py index 7f8b9dbb29..34645a371a 100644 --- a/synapse/http/server.py +++ b/synapse/http/server.py @@ -125,8 +125,18 @@ def request_handler(request_handler): code = str(code) if code else "-" end = self.clock.time_msec() logger.info( - "Processed request: %dms %s %s %s", - end-start, code, request.method, request.path + "%s - %s - {%s}" + " Processed request: %dms %sB %s \"%s %s %s\" \"%s\"", + request.getClientIP(), + request.site_tag, + request.authenticated_entity, + end-start, + request.sentLength, + code, + request.method, + request.get_redacted_uri(), + request.clientproto, + request.get_user_agent(), ) return wrapped_request_handler |