瀏覽代碼

bug(mqtt): do not print out payload for each message

ngjaying 5 年之前
父節點
當前提交
4dbbe5d6ae
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      xstream/extensions/mqtt_source.go

+ 1 - 1
xstream/extensions/mqtt_source.go

@@ -114,7 +114,7 @@ func (ms *MQTTSource) Open(ctx api.StreamContext, consume api.ConsumeFunc) error
 	}
 
 	h := func(client MQTT.Client, msg MQTT.Message) {
-		log.Infof("received %s", msg.Payload())
+		log.Debugf("received %s", msg.Payload())
 
 		result := make(map[string]interface{})
 		//The unmarshal type can only be bool, float64, string, []interface{}, map[string]interface{}, nil