Unverified Commit f0a3c722 by Stéphane Graber Committed by GitHub

Merge pull request #3460 from brauner/2020-06-25/fixes

commands: don't flood logs
parents 44f0f0ab 769b88ea
...@@ -1508,7 +1508,7 @@ static int lxc_cmd_process(int fd, struct lxc_cmd_req *req, ...@@ -1508,7 +1508,7 @@ static int lxc_cmd_process(int fd, struct lxc_cmd_req *req,
}; };
if (req->cmd >= LXC_CMD_MAX) 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); return cb[req->cmd](fd, req, handler, descr);
} }
......
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