]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
udev: downgrade log level when running without cgroup
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 21 Jul 2023 01:00:27 +0000 (10:00 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 21 Jul 2023 03:38:33 +0000 (12:38 +0900)
The cgroup path is optional, hence it is not necessary to warn the
failure loudly.

Follow-up for f8371dbd56d27621932ecbe3f5c1246e925fd53a.

Closes #28469.

src/udev/udevd.c

index bd22dedf33a653cd111af1789589133557f87318..fe29dd94b364e4fdff54d79973c436fb10fc1302 100644 (file)
@@ -1845,7 +1845,7 @@ static int manager_new(Manager **ret, int fd_ctrl, int fd_uevent) {
 
         r = cg_pid_get_path(SYSTEMD_CGROUP_CONTROLLER, 0, &cgroup);
         if (r < 0)
-                log_warning_errno(r, "Failed to get cgroup, ignoring: %m");
+                log_debug_errno(r, "Failed to get cgroup, ignoring: %m");
         else if (endswith(cgroup, "/udev")) { /* If we are in a subcgroup /udev/ we assume it was delegated to us */
                 log_debug("Running in delegated subcgroup '%s'.", cgroup);
                 manager->cgroup = TAKE_PTR(cgroup);