Sfoglia il codice sorgente

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

ngjaying 5 anni fa
parent
commit
4dbbe5d6ae
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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