Unverified Commit a9da03a7 by AustinReichert Committed by Christian Brauner

tools/lxc_snapshot: removed internal logging

parent 3dba1ad7
...@@ -33,8 +33,6 @@ ...@@ -33,8 +33,6 @@
#include "storage.h" #include "storage.h"
#include "utils.h" #include "utils.h"
lxc_log_define(lxc_snapshot_ui, lxc);
static int my_parser(struct lxc_arguments *args, int c, char *arg); static int my_parser(struct lxc_arguments *args, int c, char *arg);
static const struct option my_longopts[] = { static const struct option my_longopts[] = {
...@@ -205,12 +203,10 @@ static int do_snapshot(struct lxc_container *c, char *commentfile) ...@@ -205,12 +203,10 @@ static int do_snapshot(struct lxc_container *c, char *commentfile)
ret = c->snapshot(c, commentfile); ret = c->snapshot(c, commentfile);
if (ret < 0) { if (ret < 0) {
ERROR("Error creating a snapshot"); fprintf(stderr, "Error creating a snapshot\n");
return -1; return -1;
} }
INFO("Created snapshot snap%d", ret);
return 0; return 0;
} }
...@@ -224,7 +220,7 @@ static int do_snapshot_destroy(struct lxc_container *c, char *snapname) ...@@ -224,7 +220,7 @@ static int do_snapshot_destroy(struct lxc_container *c, char *snapname)
ret = c->snapshot_destroy(c, snapname); ret = c->snapshot_destroy(c, snapname);
if (!ret) { if (!ret) {
ERROR("Error destroying snapshot %s", snapname); fprintf(stderr, "Error destroying snapshot %s\n", snapname);
return -1; return -1;
} }
...@@ -238,7 +234,7 @@ static int do_snapshot_list(struct lxc_container *c, int print_comments) ...@@ -238,7 +234,7 @@ static int do_snapshot_list(struct lxc_container *c, int print_comments)
n = c->snapshot_list(c, &s); n = c->snapshot_list(c, &s);
if (n < 0) { if (n < 0) {
ERROR("Error listing snapshots"); fprintf(stderr, "Error listing snapshots\n");
return -1; return -1;
} }
if (n == 0) { if (n == 0) {
...@@ -278,7 +274,7 @@ static int do_snapshot_restore(struct lxc_container *c, ...@@ -278,7 +274,7 @@ static int do_snapshot_restore(struct lxc_container *c,
bret = c->snapshot_restore(c, args->snapname, args->newname); bret = c->snapshot_restore(c, args->snapname, args->newname);
if (!bret) { if (!bret) {
ERROR("Error restoring snapshot %s", args->snapname); fprintf(stderr, "Error restoring snapshot %s\n", args->snapname);
return -1; return -1;
} }
......
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