This commit is contained in:
yumoqing 2024-11-10 09:17:00 +08:00
parent feeab18bc5
commit 298e63c78a
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -25,6 +25,7 @@ from appPublic.uniqueID import setNode,getID
from appPublic.unicoding import unicoding,uDict,uObject from appPublic.unicoding import unicoding,uDict,uObject
from appPublic.Singleton import SingletonDecorator from appPublic.Singleton import SingletonDecorator
from appPublic.rc4 import password from appPublic.rc4 import password
from appPublic.registerfunction import RegisterFunction
from sqlor.dbpools import DBPools,runSQL,runSQLPaging from sqlor.dbpools import DBPools,runSQL,runSQLPaging
from sqlor.filter import DBFilter, default_filterjson from sqlor.filter import DBFilter, default_filterjson
@ -206,6 +207,7 @@ def initEnv():
g.save_file = save_file g.save_file = save_file
g.realpath = realpath g.realpath = realpath
g.format_exc = format_exc g.format_exc = format_exc
g.rfexe = RegisterFunction().exe
def set_builtins(): def set_builtins():
all_builtins = [ i for i in dir(builtins) if not i.startswith('_')] all_builtins = [ i for i in dir(builtins) if not i.startswith('_')]