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.
This commit is contained in:
Erik Johnston 2021-09-08 13:59:15 +01:00 committed by GitHub
parent 580a15e039
commit 66d72b7e17
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

1
changelog.d/10779.misc Normal file
View file

@ -0,0 +1 @@
Change the format of authenticated users in logs when a user is being puppeted by and admin user.

View file

@ -384,7 +384,7 @@ class SynapseRequest(Request):
# 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,