Sfoglia il codice sorgente

added node name to logs

0xdcarns 3 anni fa
parent
commit
63c9bdd312
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      netclient/functions/common.go

+ 2 - 2
netclient/functions/common.go

@@ -419,8 +419,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)))
 	}
 }