mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-07 09:41:37 +08:00
add logs when adding nodes to zombie list
This commit is contained in:
@@ -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")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user