mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-10 22:05:58 +08:00
logs
This commit is contained in:
parent
b1595d5ef4
commit
67a65605a4
3 changed files with 4 additions and 2 deletions
|
@ -451,9 +451,11 @@ func isInterfacePresent(iface string, address string) (string, bool) {
|
||||||
}
|
}
|
||||||
for _, addr := range currAddrs {
|
for _, addr := range currAddrs {
|
||||||
if strings.Contains(addr.String(), address) && currIface.Name != iface {
|
if strings.Contains(addr.String(), address) && currIface.Name != iface {
|
||||||
|
Log("found iface "+addr.String()+" "+currIface.Name, 2)
|
||||||
return currIface.Name, false
|
return currIface.Name, false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Log("failed to find iface "+iface, 2)
|
||||||
return "", true
|
return "", true
|
||||||
}
|
}
|
||||||
|
|
|
@ -169,7 +169,7 @@ func initWireguard(node *models.Node, privkey string, peers []wgtypes.PeerConfig
|
||||||
}
|
}
|
||||||
// set MTU of node interface
|
// set MTU of node interface
|
||||||
if _, err := ncutils.RunCmd(ipExec+" link set mtu "+strconv.Itoa(int(node.MTU))+" up dev "+ifacename, true); err != nil {
|
if _, err := ncutils.RunCmd(ipExec+" link set mtu "+strconv.Itoa(int(node.MTU))+" up dev "+ifacename, true); err != nil {
|
||||||
Log("failed to create interface with mtu "+ifacename, 2)
|
Log("failed to create interface with mtu "+strconv.Itoa(int(node.MTU))+" - "+ifacename, 2)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -108,7 +108,7 @@ func HandleContainedClient() error {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logic.Log("error occurred during server checkin: "+err.Error(), 1)
|
logic.Log("error occurred during server checkin: "+err.Error(), 1)
|
||||||
} else {
|
} else {
|
||||||
logic.Log("completed a checking peers of network "+serverNet.NetID, 3)
|
logic.Log("completed peers check of network "+serverNet.NetID, 3)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// logic.Log("completed a checkin call", 3)
|
// logic.Log("completed a checkin call", 3)
|
||||||
|
|
Loading…
Add table
Reference in a new issue