From 28aea06a4c4c63cc6f58a552f0a94fb7bd7cf4fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Wed, 10 Jul 2024 11:26:11 +0800 Subject: [PATCH] 1 --- business/jxstore/event/event_tcp.go | 4 ---- business/jxstore/event/event_tcp_utils.go | 5 ----- 2 files changed, 9 deletions(-) diff --git a/business/jxstore/event/event_tcp.go b/business/jxstore/event/event_tcp.go index fd0365bd4..d61c5db08 100644 --- a/business/jxstore/event/event_tcp.go +++ b/business/jxstore/event/event_tcp.go @@ -105,10 +105,6 @@ func handleConn(c net.Conn) error { c.Write([]byte("ok")) return err } - if printNo == "120220915001467" { - globals.SugarLogger.Debugf("=========heartbeat : %s", utils.Format4Output(heartbeat, false)) - globals.SugarLogger.Debugf("=========callback : %s", utils.Format4Output(callback, false)) - } if heartbeat { // 证明是心跳 Heartbeat(c, t, data, printNo) diff --git a/business/jxstore/event/event_tcp_utils.go b/business/jxstore/event/event_tcp_utils.go index f8e95b0d7..f57cf7ee0 100644 --- a/business/jxstore/event/event_tcp_utils.go +++ b/business/jxstore/event/event_tcp_utils.go @@ -642,11 +642,6 @@ func Heartbeat(c net.Conn, t *TcpClient, data string, printNo string) { //4、读打印channel并打印,并切等待回调channel中的消息 //5、修改数据库中打印机状态(没在连接池中说明是重新连接的) //6、监听心跳时间,超过1分多钟就clear掉 - if printNo == "120220915001467" { - globals.SugarLogger.Debugf("==%s", utils.Format4Output(t, false)) - globals.SugarLogger.Debugf("=msgMap=%s", utils.Format4Output(t.MsgMap, false)) - globals.SugarLogger.Debugf("=bool=%s", utils.Format4Output(t.getClients(printNo) == nil, false)) - } if t.getClients(printNo) == nil { addConn(c, t, printNo, status) buildAllMap(t, printNo)