mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-16 13:51:42 +08:00
add logging
This commit is contained in:
@@ -49,9 +49,6 @@ func Join(cfg config.ClientConfig, privateKey string) error {
|
||||
return err
|
||||
}
|
||||
ncutils.PrintLog("joined "+cfg.Network, 1)
|
||||
if cfg.Daemon != "off" {
|
||||
err = daemon.InstallDaemon(cfg)
|
||||
}
|
||||
if ncutils.IsWindows() {
|
||||
ncutils.PrintLog("setting up WireGuard app", 0)
|
||||
time.Sleep(time.Second >> 1)
|
||||
|
@@ -3,8 +3,8 @@ package daemon
|
||||
import (
|
||||
"fmt"
|
||||
"log"
|
||||
"path/filepath"
|
||||
"os"
|
||||
"path/filepath"
|
||||
|
||||
"github.com/gravitl/netmaker/netclient/ncutils"
|
||||
)
|
||||
@@ -104,7 +104,8 @@ netclient_args="daemon"`
|
||||
}
|
||||
|
||||
func FreebsdDaemon(command string) {
|
||||
_, _ = ncutils.RunCmd(fmt.Sprintf("service netclient %s", command), true)
|
||||
_, err := ncutils.RunCmd(fmt.Sprintf("service netclient %s", command), true)
|
||||
ncutils.Log("error from RunCmd " + err.Error())
|
||||
}
|
||||
|
||||
func CleanupFreebsd() {
|
||||
|
Reference in New Issue
Block a user