diff options
author | Erik Johnston <erik@matrix.org> | 2016-02-04 10:22:44 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2016-02-08 14:26:45 +0000 |
commit | 2c1fbea5319db2c64fa486adb32b5e66680b6daf (patch) | |
tree | f34fb636206664ffa531e30d703469ff1a6d3a19 /synapse/http/server.py | |
parent | Add metrics to pushers (diff) | |
download | synapse-2c1fbea5319db2c64fa486adb32b5e66680b6daf.tar.xz |
Fix up logcontexts
Diffstat (limited to 'synapse/http/server.py')
-rw-r--r-- | synapse/http/server.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/synapse/http/server.py b/synapse/http/server.py index 06935783ca..a90e2e1125 100644 --- a/synapse/http/server.py +++ b/synapse/http/server.py @@ -99,9 +99,8 @@ def request_handler(request_handler): request_context.request = request_id with request.processing(): try: - d = request_handler(self, request) - with PreserveLoggingContext(): - yield d + with PreserveLoggingContext(request_context): + yield request_handler(self, request) except CodeMessageException as e: code = e.code if isinstance(e, SynapseError): |