Procházet zdrojové kódy

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

ngjaying před 5 roky
rodič
revize
4dbbe5d6ae
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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