This commit is contained in:
yumoqing 2024-04-28 11:45:48 +08:00
parent d90cd47b66
commit eaae1f2819
2 changed files with 3 additions and 1 deletions

View File

@ -140,7 +140,7 @@ class AuthAPI(AppLogger):
return ret
except Exception as e:
t3 = time.time()
self.info(f'timecost=client({ip}) {user} access {path} cost {t3-t1}, ({t2-t1}), except={e}')
self.info(f'Exception=client({ip}) {user} access {path} cost {t3-t1}, ({t2-t1}), except={e}')
raise e
if user is None:

View File

@ -5,6 +5,7 @@ import sys
import codecs
from urllib.parse import quote
import json
import asyncio
import random
import time
@ -186,6 +187,7 @@ def initEnv():
g.get_config_value = get_config_value
g.get_definition = get_definition
g.DictObject = DictObject
g.async_sleep = asyncio.sleep
def set_builtins():
all_builtins = [ i for i in dir(builtins) if not i.startswith('_')]