Skip to content

Commit 288b78c

Browse files
committed
Remove cgroupv2 log warning
Remove cgroupv2 related log warning as it confused users and doesn't provide any value. Signed-off-by: David Porter <[email protected]>
1 parent bbda981 commit 288b78c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

manager/manager.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,7 @@ func New(memoryCache *memory.InMemoryCache, sysfs sysfs.SysFs, houskeepingConfig
155155
selfContainer := "/"
156156
var err error
157157
// Avoid using GetOwnCgroupPath on cgroup v2 as it is not supported by libcontainer
158-
if cgroups.IsCgroup2UnifiedMode() {
159-
klog.Warningf("Cannot detect current cgroup on cgroup v2")
160-
} else {
158+
if !cgroups.IsCgroup2UnifiedMode() {
161159
selfContainer, err = cgroups.GetOwnCgroup("cpu")
162160
if err != nil {
163161
return nil, err

0 commit comments

Comments
 (0)