Skip to content
Snippets Groups Projects
Unverified Commit 66d72b7e authored by Erik Johnston's avatar Erik Johnston Committed by GitHub
Browse files

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.
parent 580a15e0
No related branches found
No related tags found
No related merge requests found
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): ...@@ -384,7 +384,7 @@ class SynapseRequest(Request):
# authenticated (e.g. and admin is puppetting a user) then we log both. # authenticated (e.g. and admin is puppetting a user) then we log both.
requester, authenticated_entity = self.get_authenticated_entity() requester, authenticated_entity = self.get_authenticated_entity()
if authenticated_entity: if authenticated_entity:
requester = f"{authenticated_entity}.{requester}" requester = f"{authenticated_entity}|{requester}"
self.site.access_logger.log( self.site.access_logger.log(
log_level, log_level,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment