Browse Source

add logs when adding nodes to zombie list

Matthew R. Kasun 2 years ago
parent
commit
faebdce277
1 changed files with 2 additions and 0 deletions
  1. 2 0
      logic/zombie.go

+ 2 - 0
logic/zombie.go

@@ -107,8 +107,10 @@ func InitializeZombies() {
 			if node.MacAddress == othernode.MacAddress {
 				if node.LastCheckIn > othernode.LastCheckIn {
 					zombies = append(zombies, othernode.ID)
+					logger.Log(1, "adding ", othernode.Name, " with ID ", othernode.ID, " to zombie list")
 				} else {
 					zombies = append(zombies, node.ID)
+					logger.Log(1, "adding ", node.Name, " with ID ", node.ID, " to zombie list")
 				}
 			}
 		}