logging
This commit is contained in:
parent
a58959a316
commit
3fc83eefe6
@ -122,7 +122,9 @@ func StartMqttClient() {
|
|||||||
if token := mqttClient.Connect(); token.Wait() && token.Error() != nil {
|
if token := mqttClient.Connect(); token.Wait() && token.Error() != nil {
|
||||||
log.Fatalf("Unable to connect to broker %s, error %s", broker, token.Error())
|
log.Fatalf("Unable to connect to broker %s, error %s", broker, token.Error())
|
||||||
}
|
}
|
||||||
//log.Printf("Successfully connected to broker %s", broker)
|
log.Printf("Successfully connected to broker %s", broker)
|
||||||
|
log.Printf("Include topics: %s", config.Config.IncludeTopics)
|
||||||
|
log.Printf("Exclude topics: %s", config.Config.ExcludeTopics)
|
||||||
|
|
||||||
go outputDispatcher(mqttClient)
|
go outputDispatcher(mqttClient)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user