logger-auth

This commit is contained in:
2024-03-11 11:59:20 +03:00
parent 6243c27390
commit 1162c62a9b
2 changed files with 6 additions and 7 deletions

View File

@@ -79,6 +79,7 @@ def login_required(f):
req = info.context.get('request')
authorized = await check_auth(req)
if authorized:
logger.info(authorized)
user_id, user_roles = authorized
if user_id and user_roles:
logger.info(f' got {user_id} roles: {user_roles}')