bugfix
This commit is contained in:
parent
d90cd47b66
commit
eaae1f2819
@ -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:
|
||||
|
@ -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('_')]
|
||||
|
Loading…
Reference in New Issue
Block a user