From 0d1b73878e3a634ecf7d999f534494ba000c885d Mon Sep 17 00:00:00 2001 From: Untone Date: Tue, 20 Feb 2024 17:22:55 +0300 Subject: [PATCH] debug-auth --- services/auth.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/services/auth.py b/services/auth.py index 4498b122..dc32e72c 100644 --- a/services/auth.py +++ b/services/auth.py @@ -138,7 +138,10 @@ def auth_request(f): req = args[0] [user_id, user_roles] = await check_auth(req) except Exception as e: - logger.error(f"Failed to authenticate user: {e}") + import traceback + + traceback.print_exc() + logger.error(f"Failed to authenticate user: {args} {e}") if user_id: logger.info(f' got {user_id} roles: {user_roles}') req['user_id'] = user_id.strip()