From: Lennart Poettering Date: Wed, 10 Jul 2013 00:01:29 +0000 (+0200) Subject: cgroup: downgrade error message when we cannot remove a cgroup to debug X-Git-Tag: v206~166 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=376dd21dc0757e8a6d3f60d6d21bb802a90f1983;hp=bdeeb6b543a2a2d0a494f17b85f1498859cdfc2f;p=elogind.git cgroup: downgrade error message when we cannot remove a cgroup to debug Some units set KillMode=none to survive the initrd→rootfs transition. We cannot remove their cgroups, but that shouldn't really be considered an issue, so let's downgrade the error message. --- diff --git a/src/core/cgroup.c b/src/core/cgroup.c index c7f1e77c6..b5d134785 100644 --- a/src/core/cgroup.c +++ b/src/core/cgroup.c @@ -533,7 +533,7 @@ void unit_destroy_cgroup(Unit *u) { r = cg_trim_with_mask(u->cgroup_mask, u->cgroup_path, true); if (r < 0) - log_error("Failed to destroy cgroup %s: %s", u->cgroup_path, strerror(-r)); + log_debug("Failed to destroy cgroup %s: %s", u->cgroup_path, strerror(-r)); hashmap_remove(u->manager->cgroup_unit, u->cgroup_path);