From 6b7d779d40e19229a08f90cf2ed2fd0bbc01d7bf Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 11 Nov 2024 10:20:06 +0800 Subject: [PATCH] bugfix --- ahserver/auth_api.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ahserver/auth_api.py b/ahserver/auth_api.py index 6326fbb..3c940c3 100755 --- a/ahserver/auth_api.py +++ b/ahserver/auth_api.py @@ -1,6 +1,6 @@ import time import uuid -from traceback import print_exc +from traceback import format_exc from aiohttp_auth import auth from aiohttp_auth.auth.ticket_auth import TktAuthentication from aiohttp_session.redis_storage import RedisStorage @@ -163,7 +163,8 @@ class AuthAPI: return ret except Exception as e: t3 = time.time() - exception(f'Exception=client({ip}) {user} access {path} cost {t3-t1}, ({t2-t1}), except={e}') + tb = format_exc() + exception(f'Exception=client({ip}) {user} access {path} cost {t3-t1}, ({t2-t1}), except={e}\n{tb}') raise e if user is None: