Explorar o código

log message for debugging

Matthew R Kasun %!s(int64=3) %!d(string=hai) anos
pai
achega
fdf52391c7
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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)