forked from MirrorHub/synapse
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:
parent
580a15e039
commit
66d72b7e17
2 changed files with 2 additions and 1 deletions
1
changelog.d/10779.misc
Normal file
1
changelog.d/10779.misc
Normal file
|
@ -0,0 +1 @@
|
|||
Change the format of authenticated users in logs when a user is being puppeted by and admin user.
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue