liuxiulin 1 giorno fa
parent
commit
6677589b8c
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      pkg/ruleEngine/nodes/temp_alarm_node.go

+ 2 - 0
pkg/ruleEngine/nodes/temp_alarm_node.go

@@ -33,8 +33,10 @@ func (t *TempAlarmNode) Init(ctx ruleEngine.Context, config string) error {
 		c := new(TempAlarmNodeConfig)
 		err := json.Unmarshal([]byte(config), c)
 		if err != nil {
+			fmt.Printf("config转换失败:----------------%s", err.Error())
 			return err
 		}
+		fmt.Printf("config转换c:----------------%s", gjson.New(c).MustToJsonString())
 		t.config = c
 	}
 	client := utils.NewHttpClient()