diff --git a/sqlor/sor.py b/sqlor/sor.py index 3003584..09e0f20 100755 --- a/sqlor/sor.py +++ b/sqlor/sor.py @@ -14,7 +14,7 @@ from appPublic.myTE import MyTemplateEngine from appPublic.objectAction import ObjectAction from appPublic.argsConvert import ArgsConvert,ConditionConvert from appPublic.registerfunction import RegisterFunction -from appPublic.log import info +from appPublic.log import info, exception, debug from .filter import DBFilter def db_type_2_py_type(o): @@ -235,8 +235,8 @@ class SQLor(object): return cursor.execute(markedSQL,datas) except Exception as e: - print( "markedSQL=",markedSQL,':',datas,':',e) - print_exc() + fe = format_exc() + exception( f"{markedSQL=},{datas=}, {e=}, {fe=}') raise e def maskingSQL(self,org_sql,NS):