From: Serge Hallyn Date: Thu, 6 Jul 2023 23:34:59 +0000 (-0500) Subject: get_hierarchy: dont WARN about no usable controller X-Git-Tag: lxc-5.0.3~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=54227bdb159e25f14b1a8b18dbede46d46e386f0;p=thirdparty%2Flxc.git 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 --- diff --git a/src/lxc/cgroups/cgfsng.c b/src/lxc/cgroups/cgfsng.c index c5f14d104..ca3aa7853 100644 --- a/src/lxc/cgroups/cgfsng.c +++ b/src/lxc/cgroups/cgfsng.c @@ -146,7 +146,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");