Skip to content

Commit

Permalink
Merge pull request #3155 from caioboffo/issue#3147
Browse files Browse the repository at this point in the history
Send successful output messages to log info instead of error
  • Loading branch information
Christian Brauner committed Oct 10, 2019
2 parents 9e0cfe4 + 65b92ea commit 19a6b62
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lxc/tools/lxc_destroy.c
Expand Up @@ -256,19 +256,19 @@ 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);
}

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);
Expand Down

0 comments on commit 19a6b62

Please sign in to comment.