This commit is contained in:
yumoqing 2024-11-11 10:20:06 +08:00
parent 7f0148fe7c
commit 6b7d779d40

View File

@ -1,6 +1,6 @@
import time import time
import uuid import uuid
from traceback import print_exc from traceback import format_exc
from aiohttp_auth import auth from aiohttp_auth import auth
from aiohttp_auth.auth.ticket_auth import TktAuthentication from aiohttp_auth.auth.ticket_auth import TktAuthentication
from aiohttp_session.redis_storage import RedisStorage from aiohttp_session.redis_storage import RedisStorage
@ -163,7 +163,8 @@ class AuthAPI:
return ret return ret
except Exception as e: except Exception as e:
t3 = time.time() 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 raise e
if user is None: if user is None: