mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-04 16:33:49 +08:00
replace ncutil.Log/PrintLog with logger.Log
This commit is contained in:

committed by
0xdcarns

parent
28efa45419
commit
11b1098390
@@ -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)
|
||||
|
Reference in New Issue
Block a user