From 8efae163b8446c23dfa566a10758a598ccbffd19 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 26 May 2026 09:33:09 +0800 Subject: [PATCH] bugfix --- ahserver/auth_api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ahserver/auth_api.py b/ahserver/auth_api.py index e016184..65da535 100644 --- a/ahserver/auth_api.py +++ b/ahserver/auth_api.py @@ -184,9 +184,9 @@ class AuthAPI: raise e if user is None: - info(f'timecost=client({ip}) {user} need login to access {path} ({t2-t1})') + exception(f'timecost=client({ip}) {user} need login to access {path} ({t2-t1})') raise web.HTTPUnauthorized - info(f'timecost=client({ip}) {user} access {path} forbidden ({t2-t1})') + exception(f'timecost=client({ip}) {user} access {path} forbidden ({t2-t1})') raise web.HTTPForbidden() async def needAuth(self,path):