diff --git a/source/network/network.go b/source/network/network.go index 56c767d01..b8c941bbf 100644 --- a/source/network/network.go +++ b/source/network/network.go @@ -20,6 +20,7 @@ import ( "bytes" "fmt" "io/ioutil" + "os" "strconv" "strings" @@ -76,7 +77,9 @@ func (s Source) Discover() (source.Features, error) { if flags&flagUp != 0 && flags&flagLoopback == 0 { totalBytes, err := ioutil.ReadFile(source.SysfsDir.Path(sysfsBaseDir, name, "device/sriov_totalvfs")) if err != nil { - klog.V(1).Infof("SR-IOV not supported for network interface: %s: %v", name, err) + if !os.IsNotExist(err) { + klog.Errorf("failed to determine SR-IOV support for network interface: %s: %v", name, err) + } continue } total := bytes.TrimSpace(totalBytes)