mirror of
https://github.com/gravitl/netmaker.git
synced 2024-11-11 01:54:34 +08:00
debug log
This commit is contained in:
parent
aebe39e46b
commit
c239465d42
1 changed files with 2 additions and 1 deletions
|
@ -564,8 +564,9 @@ func GetNetworkServerNodeID(network string) (string, error) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
logger.Log(1, "fetching server node ID on network:", network, ", found", fmt.Sprintf("%d", len(nodes)), "nodes")
|
||||||
for _, node := range nodes {
|
for _, node := range nodes {
|
||||||
logger.Log(3, "looking for server node, current node:", node.Name, ",", node.ID, ",", servercfg.GetNodeID(), ",", node.MacAddress)
|
logger.Log(2, "looking for server node, current node:", node.Name, ",", node.ID, ",", servercfg.GetNodeID(), ",", node.MacAddress)
|
||||||
if node.IsServer == "yes" {
|
if node.IsServer == "yes" {
|
||||||
if servercfg.GetNodeID() != "" {
|
if servercfg.GetNodeID() != "" {
|
||||||
if servercfg.GetNodeID() == node.MacAddress {
|
if servercfg.GetNodeID() == node.MacAddress {
|
||||||
|
|
Loading…
Reference in a new issue