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

@@ -5,6 +5,7 @@ import (
"fmt"
nodepb "github.com/gravitl/netmaker/grpc"
"github.com/gravitl/netmaker/logger"
"github.com/gravitl/netmaker/models"
"github.com/gravitl/netmaker/netclient/auth"
"github.com/gravitl/netmaker/netclient/config"
@@ -43,7 +44,7 @@ func List(network string) error {
for _, network := range networks {
net, err := getNetwork(network)
if err != nil {
ncutils.PrintLog(network+": Could not retrieve network configuration.", 1)
logger.Log(1, network+": Could not retrieve network configuration.")
return err
}
nets = append(nets, net)