Browse Source

log message for debugging

Matthew R Kasun 3 years ago
parent
commit
fdf52391c7
1 changed files with 1 additions and 0 deletions
  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)