From 19f54c9ebfcb562bcf4d139f108ab62e3ae37a02 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 8 Nov 2024 20:18:19 +0800 Subject: [PATCH] bugfix --- build/lib/sqlor/dbpools.py | 4 ++-- sqlor/dbpools.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build/lib/sqlor/dbpools.py b/build/lib/sqlor/dbpools.py index e4cbb99..9a5ac02 100644 --- a/build/lib/sqlor/dbpools.py +++ b/build/lib/sqlor/dbpools.py @@ -12,6 +12,7 @@ from appPublic.Singleton import SingletonDecorator from appPublic.myjson import loadf from appPublic.jsonConfig import getConfig from appPublic.rc4 import unpassword +from appPublic.log import exception import threading from .sor import SQLor @@ -208,8 +209,7 @@ class DBPools: try: yield sqlor except Exception as e: - print_exc() - print('Exeception=',e) + exception(f'sqlorContext():EXCEPTION{e}') if sqlor and sqlor.dataChanged: await sqlor.rollback() finally: diff --git a/sqlor/dbpools.py b/sqlor/dbpools.py index e4cbb99..9a5ac02 100755 --- a/sqlor/dbpools.py +++ b/sqlor/dbpools.py @@ -12,6 +12,7 @@ from appPublic.Singleton import SingletonDecorator from appPublic.myjson import loadf from appPublic.jsonConfig import getConfig from appPublic.rc4 import unpassword +from appPublic.log import exception import threading from .sor import SQLor @@ -208,8 +209,7 @@ class DBPools: try: yield sqlor except Exception as e: - print_exc() - print('Exeception=',e) + exception(f'sqlorContext():EXCEPTION{e}') if sqlor and sqlor.dataChanged: await sqlor.rollback() finally: