add logs when adding nodes to zombie list

This commit is contained in:
Matthew R. Kasun
2022-10-11 10:26:11 -04:00
parent b6417796c5
commit faebdce277

View File

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