From c219086e7eab62ec1ed1be6b9714aa7566de5e0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Fri, 21 Oct 2022 15:42:05 +0800 Subject: [PATCH] 1 --- business/jxstore/event/event_tcp.go | 1 + business/jxstore/event/event_tcp_utils.go | 1 + 2 files changed, 2 insertions(+) diff --git a/business/jxstore/event/event_tcp.go b/business/jxstore/event/event_tcp.go index ebed84fb9..24401dd35 100644 --- a/business/jxstore/event/event_tcp.go +++ b/business/jxstore/event/event_tcp.go @@ -101,6 +101,7 @@ func (t *TcpClient) handleConn(c net.Conn) { } //状态不一致再更新状态(可能缺纸了,过热了等) if t.getPrintStatus(printNo) != status { + globals.SugarLogger.Debugf("==========getPrintStatus:%s", printNo) t.setPrintStatus(printNo, status) changePrinterStatus(printNo, status) } diff --git a/business/jxstore/event/event_tcp_utils.go b/business/jxstore/event/event_tcp_utils.go index c0b75ef2f..a482f0a7d 100644 --- a/business/jxstore/event/event_tcp_utils.go +++ b/business/jxstore/event/event_tcp_utils.go @@ -256,6 +256,7 @@ 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 {