mirror of
https://github.com/gravitl/netmaker.git
synced 2024-09-20 15:26:04 +08:00
add logs when adding nodes to zombie list
This commit is contained in:
parent
b6417796c5
commit
faebdce277
|
@ -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")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue