shizhongqi před 10 měsíci
rodič
revize
a20a06590a
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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
 		}