replace ncutil.Log/PrintLog with logger.Log

This commit is contained in:
Matthew R. Kasun
2022-03-20 11:12:05 -04:00
committed by 0xdcarns
parent 28efa45419
commit 11b1098390
28 changed files with 274 additions and 245 deletions

View File

@@ -6,6 +6,7 @@ import (
"path/filepath"
"time"
"github.com/gravitl/netmaker/logger"
"github.com/gravitl/netmaker/netclient/ncutils"
)
@@ -48,7 +49,7 @@ func CleanupMac() {
err = os.Remove("/Library/LaunchDaemons/" + MAC_SERVICE_NAME + ".plist")
}
if err != nil {
ncutils.PrintLog(err.Error(), 1)
logger.Log(1, err.Error())
}
os.RemoveAll(ncutils.GetNetclientPath())