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

Commit

Permalink
Change logging of puppeted requests to better differentiate users (#1…
Browse files Browse the repository at this point in the history
…0779)

This used to be a comma and got accidentally changed to a period in #9654, but a pipe character is more easier to parse visually.
  • Loading branch information
erikjohnston authored Sep 8, 2021
1 parent 580a15e commit 66d72b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
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

0 comments on commit 66d72b7

Please sign in to comment.