Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Change logging of puppeted requests to better differentiate users #10779

Merged
merged 2 commits into from
Sep 8, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/10779.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Change the format of authenticated users in logs when a user is being puppeted by and admin user.
2 changes: 1 addition & 1 deletion synapse/http/site.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ def _finished_processing(self):
# authenticated (e.g. and admin is puppetting a user) then we log both.
requester, authenticated_entity = self.get_authenticated_entity()
if authenticated_entity:
requester = f"{authenticated_entity}.{requester}"
requester = f"{authenticated_entity}|{requester}"

self.site.access_logger.log(
log_level,
Expand Down