get_hierarchy: dont WARN about no usable controller

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>
This commit is contained in:
Serge Hallyn 2023-07-06 18:34:59 -05:00
parent 213e2f68d9
commit 84cfe97724

View 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");