aboutsummaryrefslogtreecommitdiff
path: root/qc_app
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2023-11-15 16:36:29 +0300
committerFrederick Muriuki Muriithi2023-11-15 16:36:29 +0300
commit2bf17b88bca366f9ced851a6152e034f8e94f7ac (patch)
treebe1aa43e43fbd1bb9d62fd1dcabfb83a8dd37912 /qc_app
parentc35a8d255bdf6a4f6f7ba555df9448e18513d95d (diff)
downloadgn-uploader-2bf17b88bca366f9ced851a6152e034f8e94f7ac.tar.gz
Log out DB errors even when handled
Log out any DB errors that occur to help with tracking and debugging failures.
Diffstat (limited to 'qc_app')
-rw-r--r--qc_app/db_utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/qc_app/db_utils.py b/qc_app/db_utils.py
index 7eca93a..a04c5e1 100644
--- a/qc_app/db_utils.py
+++ b/qc_app/db_utils.py
@@ -28,7 +28,7 @@ def database_connection(db_url: Optional[str] = None) -> Iterator[mdb.Connection
yield connection
connection.commit()
except mdb.Error as _mdb_err:
- logging.debug(traceback.format_exc())
+ logging.error(traceback.format_exc())
connection.rollback()
finally:
connection.close()