diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2020-12-14 14:19:47 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-14 14:19:47 -0500 |
commit | 1619802228033455ff6e5863c52556996b38e8c6 (patch) | |
tree | 221d82bcf5ef163c833a5c602048beed7d3d1287 /synapse/http/site.py | |
parent | Preparatory refactoring of the OidcHandlerTestCase (#8911) (diff) | |
download | synapse-1619802228033455ff6e5863c52556996b38e8c6.tar.xz |
Various clean-ups to the logging context code (#8935)
Diffstat (limited to 'synapse/http/site.py')
-rw-r--r-- | synapse/http/site.py | 3 |
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) |