The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/lxc/pull/3460

This e-mail was sent by the LXC bot, direct replies will not reach the author
unless they happen to be subscribed to this list.

=== Description (from pull-request) ===
We're ignoring commands that we don't know about. They used to be fatal. Not
anymore.

Closes: #3459.
Signed-off-by: Christian Brauner <christian.brau...@ubuntu.com>
From 769b88ea067422b689fe2e1d4d91c96a6810d349 Mon Sep 17 00:00:00 2001
From: Christian Brauner <christian.brau...@ubuntu.com>
Date: Thu, 25 Jun 2020 16:30:09 +0200
Subject: [PATCH] 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 <christian.brau...@ubuntu.com>
---
 src/lxc/commands.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lxc/commands.c b/src/lxc/commands.c
index 4c21c752d1..d735b5ff6a 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);
 }
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to