|
|
@@ -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
|
|
|
}
|
|
|
|