]> git.proxmox.com Git - mirror_lxc.git/commitdiff
cgfsng: log cgroup names for monitor and container
authorChristian Brauner <christian.brauner@ubuntu.com>
Thu, 27 Sep 2018 11:35:34 +0000 (13:35 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Thu, 27 Sep 2018 11:35:34 +0000 (13:35 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/cgroups/cgfsng.c

index ca8ce0a7f1ec11fbd5cc11171cfe2259ff0afeec..629d371ec2f65387e92d114937ad766457550c80 100644 (file)
@@ -1376,8 +1376,10 @@ __cgfsng_ops static inline bool cgfsng_monitor_create(struct cgroup_ops *ops,
                }
        } while (ops->hierarchies[i] && idx > 0 && idx < 1000);
 
-       if (idx < 1000)
+       if (idx < 1000) {
                bret = true;
+               INFO("The monitor process uses \"%s\" as cgroup", monitor_cgroup);
+       }
 
 on_error:
        free(monitor_cgroup);
@@ -1454,6 +1456,7 @@ again:
        }
 
        ops->container_cgroup = container_cgroup;
+       INFO("The container uses \"%s\" as cgroup", container_cgroup);
 
        return true;