Browse Source

only print host id in log

Abhishek Kondur 2 years ago
parent
commit
acbd0d6337
1 changed files with 1 additions and 1 deletions
  1. 1 1
      mq/handlers.go

+ 1 - 1
mq/handlers.go

@@ -141,7 +141,7 @@ func UpdateHost(client mqtt.Client, msg mqtt.Message) {
 			logger.Log(1, "error unmarshaling payload ", err.Error())
 			logger.Log(1, "error unmarshaling payload ", err.Error())
 			return
 			return
 		}
 		}
-		logger.Log(3, fmt.Sprintf("recieved host update: %+v\n", hostUpdate))
+		logger.Log(3, fmt.Sprintf("recieved host update: %s\n", hostUpdate.Host.ID.String()))
 		var sendPeerUpdate bool
 		var sendPeerUpdate bool
 		switch hostUpdate.Action {
 		switch hostUpdate.Action {
 		case models.UpdateHost:
 		case models.UpdateHost: