Ver Fonte

log message for debugging

Matthew R Kasun há 3 anos atrás
pai
commit
fdf52391c7
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      mq/mq.go

+ 1 - 0
mq/mq.go

@@ -119,6 +119,7 @@ func GetID(topic string) (string, error) {
 
 // UpdateNode -- publishes a node update
 func NodeUpdate(node *models.Node) error {
+	logger.Log(3, "publishing node update to "+node.Name)
 	opts := mqtt.NewClientOptions()
 	broker := servercfg.GetMessageQueueEndpoint()
 	logger.Log(0, "broker: "+broker)