Skip to content

Commit eb24bb9

Browse files
author
xl1870011370
committed
修复日志打印问题
1 parent cc1b3ed commit eb24bb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/socket/ws.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ func (c *Client) Read() {
148148
// 给 client 发送消息
149149
func (c *Client) Write() {
150150
defer func() {
151-
common.Log.Info("client [%s] disconnect", c.Id)
151+
common.Log.Infof("client [%s] disconnect", c.Id)
152152
if err := c.Socket.Close(); err != nil {
153153
common.Log.Warnf("client [%s] disconnect err: %s", c.Id, err)
154154
}

0 commit comments

Comments
 (0)