From 42360e124ff457f18cc855868e2406cbf921df61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Mon, 15 Jul 2024 14:01:38 +0800 Subject: [PATCH] 1 --- business/jxstore/event/event_tcp.go | 4 ++++ controllers/api_controller.go | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/business/jxstore/event/event_tcp.go b/business/jxstore/event/event_tcp.go index c64c76457..f6cc3a4e0 100644 --- a/business/jxstore/event/event_tcp.go +++ b/business/jxstore/event/event_tcp.go @@ -72,6 +72,10 @@ func handleConn(c net.Conn) error { } return err } + globals.SugarLogger.Debugf("======buffer := %s", string(buffer)) + globals.SugarLogger.Debugf("======n := %d", n) + globals.SugarLogger.Debugf("======LocalAddr := %s", c.LocalAddr().String()) + globals.SugarLogger.Debugf("======RemoteAddr := %s", c.RemoteAddr().String()) //看是心跳还是打印回调 data := hex.EncodeToString(buffer[:n]) diff --git a/controllers/api_controller.go b/controllers/api_controller.go index 0dcc6d1c8..d70883f9b 100644 --- a/controllers/api_controller.go +++ b/controllers/api_controller.go @@ -329,7 +329,7 @@ func (c *ApiController) DoPrint(dataMap map[string]interface{}) (data, errCode s appID int orderNo string ) - globals.SugarLogger.Debugf("Begin API DoPrint data: [%v]", utils.Format4Output(dataMap, false)) + //globals.SugarLogger.Debugf("Begin API DoPrint data: [%v]", utils.Format4Output(dataMap, false)) if _, ok := dataMap[keyPrintNo].(string); !ok { return buildParamErrCodeAndErr(keyPrintNo) }