Change warning for resctrl path to Info with verbosity level
Change info log to Info with verbosity level Change imports grouping Signed-off-by: Katarzyna Kujawa <katarzyna.kujawa@intel.com>
This commit is contained in:
parent
0ac6b77bee
commit
b74cdd2214
@ -18,7 +18,6 @@ package manager
|
|||||||
import (
|
import (
|
||||||
"flag"
|
"flag"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/opencontainers/runc/libcontainer/cgroups/fs2"
|
|
||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
"path"
|
"path"
|
||||||
@ -46,6 +45,7 @@ import (
|
|||||||
"github.com/google/cadvisor/utils/sysfs"
|
"github.com/google/cadvisor/utils/sysfs"
|
||||||
"github.com/google/cadvisor/version"
|
"github.com/google/cadvisor/version"
|
||||||
"github.com/google/cadvisor/watcher"
|
"github.com/google/cadvisor/watcher"
|
||||||
|
"github.com/opencontainers/runc/libcontainer/cgroups/fs2"
|
||||||
|
|
||||||
"github.com/opencontainers/runc/libcontainer/cgroups"
|
"github.com/opencontainers/runc/libcontainer/cgroups"
|
||||||
"github.com/opencontainers/runc/libcontainer/intelrdt"
|
"github.com/opencontainers/runc/libcontainer/intelrdt"
|
||||||
@ -957,11 +957,11 @@ func (m *manager) createContainerLocked(containerName string, watchSource watche
|
|||||||
|
|
||||||
resctrlPath, err := intelrdt.GetIntelRdtPath(containerName)
|
resctrlPath, err := intelrdt.GetIntelRdtPath(containerName)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
klog.Warningf("Error getting resctrl path: %q", err)
|
klog.V(4).Infof("Error getting resctrl path: %q", err)
|
||||||
} else {
|
} else {
|
||||||
cont.resctrlCollector, err = m.resctrlManager.GetCollector(resctrlPath)
|
cont.resctrlCollector, err = m.resctrlManager.GetCollector(resctrlPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
klog.Infof("resctrl metrics will not be available for container %s: %s", cont.info.Name, err)
|
klog.V(4).Infof("resctrl metrics will not be available for container %s: %s", cont.info.Name, err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user