From f0b4109b05435b810556e18f1602b7fe2cc4fb7c Mon Sep 17 00:00:00 2001 From: lucas Date: Thu, 20 Mar 2025 17:59:32 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E6=B7=BB=E5=8A=A0=E5=BC=82=E5=B8=B8?= =?UTF-8?q?=E6=97=A5=E5=BF=97=20=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- consumers/consumerAXYraw.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/consumers/consumerAXYraw.go b/consumers/consumerAXYraw.go index 25a755c..e6de74f 100644 --- a/consumers/consumerAXYraw.go +++ b/consumers/consumerAXYraw.go @@ -163,7 +163,9 @@ func (the *consumerAXYraw) onData(topic string, msg string) bool { } else { s, _ := json.Marshal(needPush) if needPush != nil { - log.Printf("onData 设备[%s] 异常needPush= %s", needPush.IotaDevice, s) + if needPush.IotaDevice == logTagDeviceId { + log.Printf("onData 设备[%s] 异常needPush= %s", needPush.IotaDevice, s) + } } }