mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-19 08:40:42 +00:00
modify error output in cniNetworkPlugin
Signed-off-by: Bruce Ma <brucema19901024@gmail.com>
This commit is contained in:
parent
3ec5fe500d
commit
213c378562
@ -191,7 +191,7 @@ func getDefaultCNINetwork(confDir string, binDirs []string) (*cniNetwork, error)
|
||||
}
|
||||
}
|
||||
if len(confList.Plugins) == 0 {
|
||||
klog.Warningf("CNI config list %s has no networks, skipping", confFile)
|
||||
klog.Warningf("CNI config list %s has no networks, skipping", string(confList.Bytes))
|
||||
continue
|
||||
}
|
||||
|
||||
@ -199,7 +199,7 @@ func getDefaultCNINetwork(confDir string, binDirs []string) (*cniNetwork, error)
|
||||
// all plugins of this config exist on disk
|
||||
caps, err := cniConfig.ValidateNetworkList(context.TODO(), confList)
|
||||
if err != nil {
|
||||
klog.Warningf("Error validating CNI config %v: %v", confList, err)
|
||||
klog.Warningf("Error validating CNI config list %s: %v", string(confList.Bytes), err)
|
||||
continue
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user