Skip to content

Commit

Permalink
clean up log message
Browse files Browse the repository at this point in the history
  • Loading branch information
dsschult committed Jan 5, 2024
1 parent 889341b commit 0cf7e1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions user_mgmt/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ async def check_auth(self, username):
members = await self.group_cache.get_members(group_path)
if username in members:
return
logging.warning('failed inst admin check for admin %r and username %r', self.current_user, username)
logging.warning('failed inst admin check for admin %r and username %r', self.auth_data['username'], username)
raise HTTPError(403, reason='invalid authorization')

async def check_auth_read_only(self, username):
Expand Down Expand Up @@ -213,7 +213,7 @@ async def check_auth_read_only(self, username):
members = await self.group_cache.get_members(group_path)
if username in members:
return
logging.warning('failed group or inst admin check for admin %r and username %r', self.current_user, username)
logging.warning('failed group or inst admin check for admin %r and username %r', self.auth_data['username'], username)
raise HTTPError(403, reason='invalid authorization')


Expand Down

0 comments on commit 0cf7e1a

Please sign in to comment.