lijian 2 年之前
父節點
當前提交
9c204b805e
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      pkg/ruleEngine/nodes/mqtt_broker_node.go

+ 1 - 0
pkg/ruleEngine/nodes/mqtt_broker_node.go

@@ -88,6 +88,7 @@ func (M *MQTTBrokerNode) Init(ctx ruleEngine.Context, config string) error {
 	M.mqttClient = c
 	M.mqttClient = c
 	go func() {
 	go func() {
 		if token := c.Connect(); token.Wait() && token.Error() != nil {
 		if token := c.Connect(); token.Wait() && token.Error() != nil {
+			fmt.Println(token.Error().Error())
 			return
 			return
 		}
 		}
 	}()
 	}()