summary refs log tree commit diff
path: root/synapse/http
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2020-12-14 14:19:47 -0500
committerGitHub <noreply@github.com>2020-12-14 14:19:47 -0500
commit1619802228033455ff6e5863c52556996b38e8c6 (patch)
tree221d82bcf5ef163c833a5c602048beed7d3d1287 /synapse/http
parentPreparatory refactoring of the OidcHandlerTestCase (#8911) (diff)
downloadsynapse-1619802228033455ff6e5863c52556996b38e8c6.tar.xz
Various clean-ups to the logging context code (#8935)
Diffstat (limited to 'synapse/http')
-rw-r--r--synapse/http/site.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/synapse/http/site.py b/synapse/http/site.py
index 5f0581dc3f..5a5790831b 100644
--- a/synapse/http/site.py
+++ b/synapse/http/site.py
@@ -128,8 +128,7 @@ class SynapseRequest(Request):
 
         # create a LogContext for this request
         request_id = self.get_request_id()
-        logcontext = self.logcontext = LoggingContext(request_id)
-        logcontext.request = request_id
+        self.logcontext = LoggingContext(request_id, request=request_id)
 
         # override the Server header which is set by twisted
         self.setHeader("Server", self.site.server_version_string)