Explorar o código

changing log to logger.log

afeiszli %!s(int64=3) %!d(string=hai) anos
pai
achega
dda52fe286
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      netclient/functions/join.go

+ 1 - 1
netclient/functions/join.go

@@ -226,7 +226,7 @@ func JoinNetwork(cfg *config.ClientConfig, privateKey string) error {
 	}
 
 	if err := daemon.Restart(); err != nil {
-		log.Println("daemon restart failed ", err)
+		logger.Log(3, "daemon restart failed:", err.Error())
 		if err := daemon.Start(); err != nil {
 			return err
 		}