The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxc/pull/3155
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) === After destroying a container lxc-destroy output a confirmation message as an error #3147 using the ERROR log macro. This PR changes this behavior to send these confirmation messages to INFO so they could be captured with the --logpriority option. Fix #3147. Signed-off-by: Caio B. Silva <caiobo...@gmail.com>
From 65b92ea5fcab559fd21be2685bd2f15ef6d33532 Mon Sep 17 00:00:00 2001 From: "Caio B. Silva" <caiobo...@gmail.com> Date: Wed, 9 Oct 2019 16:00:58 -0300 Subject: [PATCH] lxc-destroy: send successful output messages to log info instead of error. Signed-off-by: Caio B. Silva <caiobo...@gmail.com> --- src/lxc/tools/lxc_destroy.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lxc/tools/lxc_destroy.c b/src/lxc/tools/lxc_destroy.c index 6c06b8546d..9fb511e046 100644 --- a/src/lxc/tools/lxc_destroy.c +++ b/src/lxc/tools/lxc_destroy.c @@ -256,7 +256,7 @@ int main(int argc, char *argv[]) } if (!c->is_defined(c)) { - ERROR("Container is not defined"); + INFO("Container %s not found.", my_args.name); lxc_container_put(c); exit(EXIT_FAILURE); } @@ -264,11 +264,11 @@ int main(int argc, char *argv[]) if (my_args.task == SNAP) { bret = do_destroy_with_snapshots(c); if (bret) - ERROR("Destroyed container %s including snapshots", my_args.name); + INFO("Destroyed container %s including snapshots", my_args.name); } else { bret = do_destroy(c); if (bret) - ERROR("Destroyed container %s", my_args.name); + INFO("Destroyed container %s", my_args.name); } lxc_container_put(c);
_______________________________________________ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel