Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

tornado: Always copy requester_for_logs from initial request.

Alex Vandiver7c20f1d3ea93
diff --git a/zerver/tornado/handlers.py b/zerver/tornado/handlers.py
index 826f38dfb2b..5fb27131dd0 100644
--- a/zerver/tornado/handlers.py
+++ b/zerver/tornado/handlers.py
@@ -260,8 +260,7 @@ class AsyncDjangoHandler(tornado.web.RequestHandler):
# the original request; we will need these for logging.
request_notes.log_data = old_request_notes.log_data
request_notes.ratelimits_applied += old_request_notes.ratelimits_applied
- if request_notes.requester_for_logs is not None:
- request_notes.requester_for_logs = old_request_notes.requester_for_logs
+ request_notes.requester_for_logs = old_request_notes.requester_for_logs
request.user = old_request.user
request_notes.client = old_request_notes.client
request_notes.client_name = old_request_notes.client_name