去除无用log输出

This commit is contained in:
wangxu 2026-04-30 09:56:42 +08:00
parent 8d06b9d692
commit 3660cdee6b
2 changed files with 3 additions and 3 deletions

View File

@ -61,7 +61,7 @@ class TaskDbHelper(TableDbHelperBase):
sql_query = "select * from task.`task` where nodeid='%s' and area_id = %s and record_state=0 order by task_state asc, progress asc, plan_end_time desc" % (nodeid, area_id)
res_list = self.do_select(sql_query)
for res in res_list:
logging.info(res['update_time'])
# logging.info(res['update_time'])
if res['update_time'] is not None:
res['update_time'] = res['update_time'].strftime('%Y-%m-%d %H:%M:%S')
return res_list
@ -102,7 +102,7 @@ class TaskDbHelper(TableDbHelperBase):
res_list = self.do_select(sql_query)
if len(res_list) > 0:
for res in res_list:
logging.info(res['update_time'])
# logging.info(res['update_time'])
if res['update_time'] is not None:
res['update_time'] = res['update_time'].strftime('%Y-%m-%d %H:%M:%S')
return res_list

View File

@ -44,7 +44,7 @@ class DatabaseManager:
cursor = conn.cursor()
try:
cursor.execute(sql)
logging.info(f"Successfully change to MySQL database to {db_name}")
# logging.info(f"Successfully change to MySQL database to {db_name}")
except Exception as e:
print(f"Error executing SQL: {str(e)}")
return conn, cursor, e