优化日志

This commit is contained in:
duanhf2012
2020-04-02 21:37:53 +08:00
parent c98db7e042
commit 3ff1c75232

View File

@@ -117,7 +117,7 @@ func (slf *Client) Run() {
for{ for{
bytes,err := slf.tcpConn.ReadMsg() bytes,err := slf.tcpConn.ReadMsg()
if err != nil { if err != nil {
log.Debug("read client id %d is error",err) log.Debug("read client id %d is error:%+v",slf.id,err)
break break
} }
data,err:=slf.tcpService.process.Unmarshal(bytes) data,err:=slf.tcpService.process.Unmarshal(bytes)