]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
attach: tweak logging
authorChristian Brauner <christian.brauner@ubuntu.com>
Wed, 27 Jan 2021 19:35:06 +0000 (20:35 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Wed, 27 Jan 2021 19:52:40 +0000 (20:52 +0100)
Cc: stable-4.0
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/attach.c

index b9b8ac9d5438e0fc5e185157b62b525a34d6b807..a59b20fe57c7a8a0b5cf8acc813e889f60323302 100644 (file)
@@ -1289,6 +1289,8 @@ int lxc_attach(struct lxc_container *container, lxc_attach_exec_t exec_function,
                ret = setup_proc_filesystem(&conf->procs, pid);
                if (ret < 0)
                        goto on_error;
+
+               TRACE("Setup /proc/%d settings", pid);
        }
 
        /* Setup resource limits */
@@ -1296,6 +1298,8 @@ int lxc_attach(struct lxc_container *container, lxc_attach_exec_t exec_function,
                ret = setup_resource_limits(&conf->limits, pid);
                if (ret < 0)
                        goto on_error;
+
+               TRACE("Setup resource limits");
        }
 
        if (options->attach_flags & LXC_ATTACH_TERMINAL) {