From 0cf7e1a3a34d1f7d8e3c371deaffe18a15a24483 Mon Sep 17 00:00:00 2001 From: David Schultz Date: Fri, 5 Jan 2024 13:56:47 -0600 Subject: [PATCH] clean up log message --- user_mgmt/users.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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')