The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxc/pull/3579
This e-mail was sent by the LXC bot, direct replies will not reach the author unless they happen to be subscribed to this list. === Description (from pull-request) === These errors do not affect the normal operation. In order to avoid user misunderstanding, adjust the level to warning instead of error. Signed-off-by: lifeng68 <[email protected]>
From 34375fd74c65b712f53e9a1e886b5a7e382fe14d Mon Sep 17 00:00:00 2001 From: lifeng68 <[email protected]> Date: Fri, 13 Nov 2020 13:49:21 +0800 Subject: [PATCH] cgfsng: adjust log level to warn instead of error Signed-off-by: lifeng68 <[email protected]> --- src/lxc/cgroups/cgfsng.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lxc/cgroups/cgfsng.c b/src/lxc/cgroups/cgfsng.c index a699a4445f..862714d87a 100644 --- a/src/lxc/cgroups/cgfsng.c +++ b/src/lxc/cgroups/cgfsng.c @@ -654,7 +654,7 @@ static char **cg_hybrid_get_controllers(char **klist, char **nlist, char *line, * verify /sys/fs/cgroup/ in this field. */ if (strncmp(p, DEFAULT_CGROUP_MOUNTPOINT "/", 15) != 0) - return log_error(NULL, "Found hierarchy not under " DEFAULT_CGROUP_MOUNTPOINT ": \"%s\"", p); + return log_warn(NULL, "Found hierarchy not under " DEFAULT_CGROUP_MOUNTPOINT ": \"%s\"", p); p += 15; p2 = strchr(p, ' '); @@ -3239,7 +3239,7 @@ static int cg_hybrid_init(struct cgroup_ops *ops, bool relative, bool unprivileg mountpoint = cg_hybrid_get_mountpoint(line); if (!mountpoint) { - ERROR("Failed parsing mountpoint from \"%s\"", line); + WARN("Failed parsing mountpoint from \"%s\"", line); continue; } @@ -3248,7 +3248,7 @@ static int cg_hybrid_init(struct cgroup_ops *ops, bool relative, bool unprivileg else base_cgroup = cg_hybrid_get_current_cgroup(basecginfo, NULL, CGROUP2_SUPER_MAGIC); if (!base_cgroup) { - ERROR("Failed to find current cgroup"); + WARN("Failed to find current cgroup"); continue; }
_______________________________________________ lxc-devel mailing list [email protected] http://lists.linuxcontainers.org/listinfo/lxc-devel
