diff --git a/user_mgmt/users.py b/user_mgmt/users.py index 5e95f03..03ec00d 100644 --- a/user_mgmt/users.py +++ b/user_mgmt/users.py @@ -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): @@ -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')