From 9161338c9f0e78ac5da22b906d0ae8dda2a65062 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Mon, 12 Dec 2022 09:41:58 +0800 Subject: [PATCH] 1 --- business/jxstore/event/event_tcp.go | 3 --- business/jxstore/event/event_tcp_utils.go | 2 -- 2 files changed, 5 deletions(-) diff --git a/business/jxstore/event/event_tcp.go b/business/jxstore/event/event_tcp.go index 07c4601fc..8d5fe109e 100644 --- a/business/jxstore/event/event_tcp.go +++ b/business/jxstore/event/event_tcp.go @@ -22,7 +22,6 @@ func ListenTcp() { fmt.Println("listen error:", err) return } - globals.SugarLogger.Debugf("begin listenTcp port 8000......") for { c, err := l.Accept() if err != nil { @@ -34,7 +33,6 @@ func ListenTcp() { } func (t *TcpClient) handleConn(c net.Conn) { - globals.SugarLogger.Debugf("conn time %v", time.Now()) if c == nil { globals.SugarLogger.Debugf("conn is nil") return @@ -46,7 +44,6 @@ func (t *TcpClient) handleConn(c net.Conn) { buffer = make([]byte, 1024) ) n, err := c.Read(buffer) - fmt.Println("ReadString err", err) if err != nil { if err == io.EOF { fmt.Println("connection close") diff --git a/business/jxstore/event/event_tcp_utils.go b/business/jxstore/event/event_tcp_utils.go index 1522e2b98..193171573 100644 --- a/business/jxstore/event/event_tcp_utils.go +++ b/business/jxstore/event/event_tcp_utils.go @@ -261,7 +261,6 @@ func (t *TcpClient) setPrintStatus(key string, status int) { } func (t *TcpClient) setPrintStatusTime(key string) { - globals.SugarLogger.Debugf("==========setPrintStatusTime:%s", key) t.Lock() defer t.Unlock() if t.Clients[key] != nil { @@ -282,7 +281,6 @@ func (t *TcpClient) addMsgChan(printMsg *model.PrintMsg) (err error) { dataChan := make(chan *model.PrintMsg, 1024) t.MsgMap[printMsg.PrintNo] = dataChan } - globals.SugarLogger.Debugf("addMsgChan msgID: %s", printMsg.MsgID) t.MsgMap[printMsg.PrintNo] <- printMsg return err }