shizhongqi hai 10 meses
pai
achega
a20a06590a
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      wsClient/client.go

+ 2 - 2
wsClient/client.go

@@ -68,9 +68,9 @@ func (c *Client) read() {
 
 		// 在此处处理心跳消息
 		if string(msg) == "*hb*" {
-			log.Debug().Str("client", c.name).Str("message", string(msg)).Msg("Received heartbeat message")
+			log.Debug().Str("client", c.name).Str("msg_content", string(msg)).Msg("Received heartbeat message")
 			// 额外验证:使用 fmt.Printf 确保字段能正确显示
-			fmt.Printf("DEBUG: Heartbeat from %s with message: %s\n", c.name, string(msg))
+			// fmt.Printf("DEBUG: Heartbeat from %s with message: %s\n", c.name, string(msg))
 			continue
 		}