commands: use debug logging

It is fine to fail these commands when a new client talks to an old server or the kernel doesn't support the necessary features. Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent 8aa82616
...@@ -629,14 +629,14 @@ int lxc_cmd_get_init_pidfd(const char *name, const char *lxcpath) ...@@ -629,14 +629,14 @@ int lxc_cmd_get_init_pidfd(const char *name, const char *lxcpath)
ret = lxc_cmd(name, &cmd, &stopped, lxcpath, NULL); ret = lxc_cmd(name, &cmd, &stopped, lxcpath, NULL);
if (ret < 0) if (ret < 0)
return log_debug_errno(-1, errno, "Failed to process init pidfd command"); return sysdebug("Failed to process init pidfd command");
if (cmd.rsp.ret < 0) if (cmd.rsp.ret < 0)
return syserrno_set(cmd.rsp.ret, "Failed to receive init pidfd"); return sysdebug_set(cmd.rsp.ret, "Failed to receive init pidfd");
pidfd = PTR_TO_INT(cmd.rsp.data); pidfd = PTR_TO_INT(cmd.rsp.data);
if (pidfd < 0) if (pidfd < 0)
return syserrno_set(pidfd, "Failed to receive init pidfd"); return sysdebug_set(pidfd, "Failed to receive init pidfd");
return pidfd; return pidfd;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment