diff --git a/internal/util/topology.go b/internal/util/topology.go index 014479aa9..d20e4dbad 100644 --- a/internal/util/topology.go +++ b/internal/util/topology.go @@ -24,7 +24,6 @@ import ( "github.com/container-storage-interface/spec/lib/go/csi" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - klog "k8s.io/klog/v2" ) const ( @@ -60,7 +59,7 @@ func GetTopologyFromDomainLabels(domainLabels, nodeName, driverName string) (map // Convert passed in labels to a map, and check for uniqueness labelsToRead := strings.SplitN(domainLabels, labelSeparator, -1) - klog.Infof("passed in node labels for processing : %+v", labelsToRead) + DefaultLog("passed in node labels for processing : %+v", labelsToRead) labelsIn := make(map[string]bool) labelCount := 0 @@ -106,7 +105,7 @@ func GetTopologyFromDomainLabels(domainLabels, nodeName, driverName string) (map return nil, fmt.Errorf("missing domain labels %v on node (%s)", missingLabels, nodeName) } - klog.Infof("list of domains processed : %+v", domainMap) + DefaultLog("list of domains processed : %+v", domainMap) topology := make(map[string]string) for domain, value := range domainMap {