From 84cfe977246989d58a4bdfd7942c764e592af039 Mon Sep 17 00:00:00 2001 From: Serge Hallyn Date: Thu, 6 Jul 2023 18:34:59 -0500 Subject: [PATCH] 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 --- src/lxc/cgroups/cgfsng.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lxc/cgroups/cgfsng.c b/src/lxc/cgroups/cgfsng.c index 850fcbb20..a9e0c91ce 100644 --- a/src/lxc/cgroups/cgfsng.c +++ b/src/lxc/cgroups/cgfsng.c @@ -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");