summary refs log tree commit diff
path: root/synapse/http/server.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-06-15 17:11:44 +0100
committerErik Johnston <erik@matrix.org>2015-06-15 17:11:44 +0100
commitcee69441d3d3b4d966b6ec69c7dbf4eb3b876bb3 (patch)
treeaed730c6d9d10710be309b422bf411447e3decfc /synapse/http/server.py
parentCreate SynapseRequest that overrides __repr__ to not print access_token (diff)
downloadsynapse-cee69441d3d3b4d966b6ec69c7dbf4eb3b876bb3.tar.xz
Log more when we have processed the request
Diffstat (limited to '')
-rw-r--r--synapse/http/server.py14
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