This commit is contained in:
邹宗楠
2022-11-04 15:12:28 +08:00
parent 722997a64b
commit cc8b1a6fc0

View File

@@ -46,7 +46,7 @@ func (t *TcpClient) handleConn(c net.Conn) {
buffer = make([]byte, 1024)
)
n, err := c.Read(buffer)
globals.SugarLogger.Debugf("err ======================%s", err.Error())
globals.SugarLogger.Debugf("err ======================%v", err)
if err != nil {
if err == io.EOF {
fmt.Println("connection close")