From 6e71fbcb119e7068ba35380edaa5cc66e7c71f1b Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期四, 27 十月 2022 16:21:05 +0800
Subject: [PATCH] 交易体系完善

---
 mysql_data.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/mysql_data.py b/mysql_data.py
index ba7f63d..ca2521e 100644
--- a/mysql_data.py
+++ b/mysql_data.py
@@ -1,4 +1,6 @@
 # 鍏堣瀵煎叆pymysql
+import logging
+
 import pymysql
 
 # 鎶婅繛鎺ュ弬鏁板畾涔夋垚瀛楀吀
@@ -56,6 +58,7 @@
             self.conn.commit()
         except Exception as e:
             print("鎻愪氦鍑洪敊\n:", e)
+            logging.exception(e)
             # 濡傛灉鍑洪敊瑕佸洖婊�
             self.conn.rollback()
 
@@ -66,6 +69,7 @@
             # 鎻愪氦
             self.conn.commit()
         except Exception as e:
+            logging.exception(e)
             print("鎻愪氦鍑洪敊\n:", e)
             # 濡傛灉鍑洪敊瑕佸洖婊�
             self.conn.rollback()

--
Gitblit v1.8.0