]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
get_hierarchy: dont WARN about no usable controller 4324/head
authorSerge Hallyn <shallyn@cisco.com>
Thu, 6 Jul 2023 23:34:59 +0000 (18:34 -0500)
committerSerge Hallyn <shallyn@cisco.com>
Thu, 6 Jul 2023 23:34:59 +0000 (18:34 -0500)
If I start a container with loglevel WARN, and (on a pretty
stock ubuntu) do lxc-info -n $c, I get

lxc-start media 20230706233337.765 WARN     cgfsng - cgroups/cgfsng.c:get_hierarchy:142 - There is no useable cpuacct controller
lxc-start media 20230706233337.765 WARN     cgfsng - cgroups/cgfsng.c:get_hierarchy:142 - There is no useable blkio controller

I don't think that's worth WARNing about, so change it to
INFO.

Signed-off-by: Serge Hallyn <shallyn@cisco.com>
src/lxc/cgroups/cgfsng.c

index 850fcbb20e2bc086ecc85e94773766f5044921db..a9e0c91ce445866397cbb6d1a785ca7189ff59e2 100644 (file)
@@ -145,7 +145,7 @@ static struct hierarchy *get_hierarchy(const struct cgroup_ops *ops, const char
        }
 
        if (controller)
-               WARN("There is no useable %s controller", controller);
+               INFO("There is no useable %s controller", controller);
        else
                WARN("There is no empty unified cgroup hierarchy");