debug log

This commit is contained in:
0xdcarns 2022-01-18 09:56:57 -05:00
parent aebe39e46b
commit c239465d42

View file

@ -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 {