bugfix
This commit is contained in:
parent
feeab18bc5
commit
298e63c78a
@ -163,9 +163,7 @@ class AuthAPI:
|
||||
return ret
|
||||
except Exception as e:
|
||||
t3 = time.time()
|
||||
info(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()
|
||||
exception(f'Exception=client({ip}) {user} access {path} cost {t3-t1}, ({t2-t1}), except={e}')
|
||||
raise e
|
||||
|
||||
if user is None:
|
||||
|
@ -25,6 +25,7 @@ from appPublic.uniqueID import setNode,getID
|
||||
from appPublic.unicoding import unicoding,uDict,uObject
|
||||
from appPublic.Singleton import SingletonDecorator
|
||||
from appPublic.rc4 import password
|
||||
from appPublic.registerfunction import RegisterFunction
|
||||
|
||||
from sqlor.dbpools import DBPools,runSQL,runSQLPaging
|
||||
from sqlor.filter import DBFilter, default_filterjson
|
||||
@ -206,6 +207,7 @@ def initEnv():
|
||||
g.save_file = save_file
|
||||
g.realpath = realpath
|
||||
g.format_exc = format_exc
|
||||
g.rfexe = RegisterFunction().exe
|
||||
|
||||
def set_builtins():
|
||||
all_builtins = [ i for i in dir(builtins) if not i.startswith('_')]
|
||||
|
Loading…
Reference in New Issue
Block a user