diff --git a/build/lib/sqlor/dbpools.py b/build/lib/sqlor/dbpools.py index 9a5ac02..44fa5bc 100644 --- a/build/lib/sqlor/dbpools.py +++ b/build/lib/sqlor/dbpools.py @@ -1,6 +1,6 @@ import asyncio -from traceback import print_exc +from traceback import format_exc from functools import wraps import codecs @@ -209,7 +209,8 @@ class DBPools: try: yield sqlor except Exception as e: - exception(f'sqlorContext():EXCEPTION{e}') + cb = format_exc() + exception(f'sqlorContext():EXCEPTION{e}, {cb}') if sqlor and sqlor.dataChanged: await sqlor.rollback() finally: diff --git a/sqlor/dbpools.py b/sqlor/dbpools.py index 9a5ac02..44fa5bc 100755 --- a/sqlor/dbpools.py +++ b/sqlor/dbpools.py @@ -1,6 +1,6 @@ import asyncio -from traceback import print_exc +from traceback import format_exc from functools import wraps import codecs @@ -209,7 +209,8 @@ class DBPools: try: yield sqlor except Exception as e: - exception(f'sqlorContext():EXCEPTION{e}') + cb = format_exc() + exception(f'sqlorContext():EXCEPTION{e}, {cb}') if sqlor and sqlor.dataChanged: await sqlor.rollback() finally: