From 2c1a72c5e5fc394bc9fb894ba4a8990fbcd54742 Mon Sep 17 00:00:00 2001 From: link Date: Tue, 9 Jan 2024 02:41:43 +0000 Subject: [PATCH] jump local-storage:raid_status event --- route/event_listen.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/route/event_listen.go b/route/event_listen.go index dc096d9..a6e851b 100644 --- a/route/event_listen.go +++ b/route/event_listen.go @@ -60,7 +60,9 @@ func EventListen() { Properties: string(propertiesStr), UUID: *event.Uuid, } - logger.Info("write to database", zap.Any("model", model)) + if event.Name == "local-storage:raid_status" { + continue + } service.MyService.Event().CreateEvemt(model) // logger.Info("info", zap.Any("写入信息1", model)) // output, err := json.MarshalIndent(event, "", " ")