]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc-destroy: send successful output messages to log info instead of error. 3155/head
authorCaio B. Silva <caioboffo@gmail.com>
Wed, 9 Oct 2019 19:00:58 +0000 (16:00 -0300)
committerCaio B. Silva <caioboffo@gmail.com>
Wed, 9 Oct 2019 19:06:44 +0000 (16:06 -0300)
Signed-off-by: Caio B. Silva <caioboffo@gmail.com>
src/lxc/tools/lxc_destroy.c

index 6c06b8546d33091c182fc7fae2f23ba301876bff..9fb511e046f845179608d308991a4586bc936f5e 100644 (file)
@@ -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);