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

Commit 66d72b7

Browse files
authored
Change logging of puppeted requests to better differentiate users (#10779)
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.
1 parent 580a15e commit 66d72b7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog.d/10779.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Change the format of authenticated users in logs when a user is being puppeted by and admin user.

synapse/http/site.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ def _finished_processing(self):
384384
# authenticated (e.g. and admin is puppetting a user) then we log both.
385385
requester, authenticated_entity = self.get_authenticated_entity()
386386
if authenticated_entity:
387-
requester = f"{authenticated_entity}.{requester}"
387+
requester = f"{authenticated_entity}|{requester}"
388388

389389
self.site.access_logger.log(
390390
log_level,

0 commit comments

Comments
 (0)