This commit is contained in:
Gordon 2021-07-22 10:18:18 +08:00
parent 41f02e51f6
commit f6189a281e

View File

@ -59,7 +59,7 @@ func (ws *WServer) readMsg(conn *websocket.Conn) {
for {
msgType, msg, err := conn.ReadMessage()
if err != nil {
log.ErrorByKv("WS ReadMsg error", "", "userIP", conn.RemoteAddr().String(), "userUid", ws.getUserUid(conn), "error", err)
log.ErrorByKv("WS ReadMsg error", "", "userIP", conn.RemoteAddr().String(), "userUid", ws.getUserUid(conn), "error", err, "conn", conn)
ws.delUserConn(conn)
return
} else {