mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-05 08:47:35 +08:00
added node name to logs
This commit is contained in:
@@ -413,8 +413,8 @@ func SetServerInfo(cfg *config.ClientConfig) error {
|
||||
|
||||
func informPortChange(node *models.Node) {
|
||||
if node.ListenPort == 0 {
|
||||
logger.Log(0, "UDP hole punching enabled")
|
||||
logger.Log(0, "UDP hole punching enabled for node", node.Name)
|
||||
} else {
|
||||
logger.Log(0, "using port", strconv.Itoa(int(node.ListenPort)))
|
||||
logger.Log(0, "node", node.Name, "is using port", strconv.Itoa(int(node.ListenPort)))
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user