HeWang 6 місяців тому
батько
коміт
9fb487888d

+ 2 - 2
aarch64/pjibot_guide/common/config/c_websocket.go

@@ -69,7 +69,7 @@ func keepAlive() {
 			//c_log.GlobalLogger.Error("responseMessage", responseMessage)
 			flag, err := SendWebsocketHeartbeat(WsConn, 100)
 			if err != nil {
-				c_log.GlobalLogger.Error("保持websocket连接活跃,请求出错,定时重试。")
+				c_log.GlobalLogger.Error("保持websocket连接活跃,请求出错,定时重试。", err)
 			}
 			if !flag {
 				WsConn.Close()
@@ -115,7 +115,7 @@ func SendWebsocketHeartbeat(conn *websocket.Conn, maxRetries int) (bool, error)
 
 		var response Response
 		if err := json.Unmarshal(message, &response); err == nil && response.Type == "response" {
-			fmt.Println("response", response)
+			c_log.GlobalLogger.Info("response ", response)
 			return true, err
 		}
 		count++

+ 1 - 1
aarch64/pjibot_guide/control/main.go

@@ -130,7 +130,7 @@ func stopMasterNode() {
 
 func main() {
 	// 更新本地任务状态
-	go pkg.GetLocalStatus(&localStatus, &lastLocalStatus, localTurnLength)
+	//go pkg.GetLocalStatus(&localStatus, &lastLocalStatus, localTurnLength)
 	// 更新云端任务状态
 	go pkg.GetCloudStatus(&cloudStatus, &lastCloudStatus, cloudTurnLength)