From c9db6917b94033387554730ad24a19d1b5fece5d Mon Sep 17 00:00:00 2001 From: weizhihong Date: Fri, 8 Dec 2023 17:55:37 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=B3=A8=E9=87=8A=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E6=89=93=E5=8D=B0=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- message_server/ibp_ms.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/message_server/ibp_ms.go b/message_server/ibp_ms.go index 1a85856..e23e389 100644 --- a/message_server/ibp_ms.go +++ b/message_server/ibp_ms.go @@ -2,7 +2,6 @@ package message_server import ( "fmt" - "log/slog" "time" "google.golang.org/protobuf/proto" @@ -97,7 +96,7 @@ func (ms *IbpMs) collectIBPButtonState(stationUid string, uidsMap *memory.IBPUid uid := stationUid + "_" + uidsMap.IbpButtonIds[data.Common.Id].Uid entry, ok := entity.GetEntityByUid(ms.vs.World, uid) if !ok { - slog.Warn("ibp按钮实体不存在: World id=%d, uid=%s", ms.vs.World.Id(), uid) + //slog.Warn("ibp按钮实体不存在: World id=%d, uid=%s", ms.vs.World.Id(), uid) continue } if entry.HasComponent(component.ButtonTag) { @@ -127,7 +126,7 @@ func (ms *IbpMs) collectIBPAlarmState(stationUid string, uidsMap *memory.IBPUidS uid := stationUid + "_" + uidsMap.IbpAlarmIds[data.Common.Id].Uid entry, ok := entity.GetEntityByUid(ms.vs.World, uid) if !ok { - slog.Warn("ibp报警器实体不存在: World id=%d, uid=%s", ms.vs.World.Id(), uid) + //slog.Warn("ibp报警器实体不存在: World id=%d, uid=%s", ms.vs.World.Id(), uid) continue } if entry.HasComponent(component.AlarmTag) { @@ -144,7 +143,7 @@ func (ms *IbpMs) collectIBPLightState(stationUid string, uidsMap *memory.IBPUidS uid := stationUid + "_" + uidsMap.IbpLightIds[data.Common.Id].Uid entry, ok := entity.GetEntityByUid(ms.vs.World, uid) if !ok { - slog.Warn("ibp指示灯实体不存在: World id=%d, uid=%s", ms.vs.World.Id(), uid) + //slog.Warn("ibp指示灯实体不存在: World id=%d, uid=%s", ms.vs.World.Id(), uid) continue } if entry.HasComponent(component.LightTag) { @@ -161,7 +160,7 @@ func (ms *IbpMs) collectIBPKeyState(stationUid string, uidsMap *memory.IBPUidStr uid := stationUid + "_" + uidsMap.IbpKeyIds[data.Common.Id].Uid entry, ok := entity.GetEntityByUid(ms.vs.World, uid) if !ok { - slog.Warn("ibp钥匙实体不存在: World id=%d, uid=%s", ms.vs.World.Id(), uid) + //slog.Warn("ibp钥匙实体不存在: World id=%d, uid=%s", ms.vs.World.Id(), uid) continue } if entry.HasComponent(component.KeyTag) {