Ver código fonte

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

ngjaying 5 anos atrás
pai
commit
4dbbe5d6ae
1 arquivos alterados com 1 adições e 1 exclusões
  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