From: Christian Brauner Date: Thu, 25 Jun 2020 14:30:09 +0000 (+0200) Subject: commands: don't flood logs X-Git-Tag: lxc-5.0.0~408^2 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=769b88ea067422b689fe2e1d4d91c96a6810d349;p=mirror_lxc.git commands: don't flood logs We're ignoring commands that we don't know about. They used to be fatal. Not anymore. Closes: #3459. Signed-off-by: Christian Brauner --- diff --git a/src/lxc/commands.c b/src/lxc/commands.c index 4c21c752d..d735b5ff6 100644 --- a/src/lxc/commands.c +++ b/src/lxc/commands.c @@ -1508,7 +1508,7 @@ static int lxc_cmd_process(int fd, struct lxc_cmd_req *req, }; if (req->cmd >= LXC_CMD_MAX) - return log_error_errno(-1, ENOENT, "Undefined command id %d", req->cmd); + return log_trace_errno(-1, EINVAL, "Invalid command id %d", req->cmd); return cb[req->cmd](fd, req, handler, descr); }