251108问题修复

This commit is contained in:
2025-11-08 20:38:55 +08:00
parent b66b31d9ad
commit e54c8d6f5e
27 changed files with 613 additions and 51 deletions

View File

@ -101,10 +101,10 @@ class RobotClient(TCPClient):
log.log_message(logging.ERROR,Constant.str_tcp_robot_data_error)
return True
except json.JSONDecodeError as e:
log.log_message(logging.WARNING,Constant.str_sys_json_error+response)
log.log_message(logging.WARNING,Constant.str_sys_json_error+request_status_json)
return True
except Exception as e:
log.log_message(logging.ERROR,f'{e}{response}')
log.log_message(logging.ERROR,f'{e}{request_status_json}')
raise
def send_emergency_sound(self):

View File

@ -45,7 +45,7 @@ class TCPClient:
self.error_count += 1
if self.error_count> 5:
print("Error: 机械臂控制程序中TCPClient is not connected")
log.log_message(logging.ERROR,f'{Constant.str_tcp_connect_no_reply}:{str(e)}')
# log.log_message(logging.ERROR,f'{Constant.str_tcp_connect_no_reply}:{str(e)}')
try:
self.CreatConnect()
log.log_message(logging.INFO, Constant.str_tcp_reconnect)