diff options
author | Amar Tumballi <amar@gluster.com> | 2011-04-07 07:44:51 +0000 |
---|---|---|
committer | Vijay Bellur <vijay@gluster.com> | 2011-04-07 11:40:25 -0700 |
commit | 62e1096fb01f7a12c5bc5ff77e3cb427248b80ad (patch) | |
tree | 863f24a67574834751693a82fee9df158bdeb253 /cli | |
parent | 19b2e01f1c53c358c5673c3d216c0349b55481a6 (diff) |
removed reference to GF_LOG_NORMAL
instead used GF_LOG_INFO, which is more standard log level.
Signed-off-by: Amar Tumballi <amar@gluster.com>
Signed-off-by: Vijay Bellur <vijay@gluster.com>
BUG: 2669 (RuntimeError: cannot recognize log level "normal")
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2669
Diffstat (limited to 'cli')
-rw-r--r-- | cli/src/cli-cmd.c | 2 | ||||
-rw-r--r-- | cli/src/cli-rpc-ops.c | 38 | ||||
-rw-r--r-- | cli/src/input.c | 2 |
3 files changed, 21 insertions, 21 deletions
diff --git a/cli/src/cli-cmd.c b/cli/src/cli-cmd.c index 2b9aea191df..cdcc4be2d7b 100644 --- a/cli/src/cli-cmd.c +++ b/cli/src/cli-cmd.c @@ -137,7 +137,7 @@ cli_cmd_process (struct cli_state *state, int argc, char **argv) if (ret) { cli_out ("Connection failed. Please check if gluster " "daemon is operational."); - gf_log ("", GF_LOG_NORMAL, "Exiting with: %d", ret); + gf_log ("", GF_LOG_INFO, "Exiting with: %d", ret); exit (ret); } } diff --git a/cli/src/cli-rpc-ops.c b/cli/src/cli-rpc-ops.c index ff568f63c2f..7afd38524fc 100644 --- a/cli/src/cli-rpc-ops.c +++ b/cli/src/cli-rpc-ops.c @@ -95,7 +95,7 @@ gf_cli3_1_probe_cbk (struct rpc_req *req, struct iovec *iov, goto out; } - gf_log ("cli", GF_LOG_NORMAL, "Received resp to probe"); + gf_log ("cli", GF_LOG_INFO, "Received resp to probe"); if (!rsp.op_ret) { switch (rsp.op_errno) { case GF_PROBE_SUCCESS: @@ -171,7 +171,7 @@ gf_cli3_1_deprobe_cbk (struct rpc_req *req, struct iovec *iov, goto out; } - gf_log ("cli", GF_LOG_NORMAL, "Received resp to deprobe"); + gf_log ("cli", GF_LOG_INFO, "Received resp to deprobe"); if (rsp.op_ret) { switch (rsp.op_errno) { case GF_DEPROBE_LOCALHOST: @@ -235,7 +235,7 @@ gf_cli3_1_list_friends_cbk (struct rpc_req *req, struct iovec *iov, } - gf_log ("cli", GF_LOG_NORMAL, "Received resp to list: %d", + gf_log ("cli", GF_LOG_INFO, "Received resp to list: %d", rsp.op_ret); ret = rsp.op_ret; @@ -401,7 +401,7 @@ gf_cli3_1_get_volume_cbk (struct rpc_req *req, struct iovec *iov, } - gf_log ("cli", GF_LOG_NORMAL, "Received resp to get vol: %d", + gf_log ("cli", GF_LOG_INFO, "Received resp to get vol: %d", rsp.op_ret); if (!rsp.op_ret) { @@ -581,7 +581,7 @@ out: if (dict) dict_destroy (dict); - gf_log ("", GF_LOG_NORMAL, "Returning: %d", ret); + gf_log ("", GF_LOG_INFO, "Returning: %d", ret); return ret; } @@ -612,7 +612,7 @@ gf_cli3_1_create_volume_cbk (struct rpc_req *req, struct iovec *iov, ret = dict_get_str (dict, "volname", &volname); - gf_log ("cli", GF_LOG_NORMAL, "Received resp to create volume"); + gf_log ("cli", GF_LOG_INFO, "Received resp to create volume"); if (rsp.op_ret && strcmp (rsp.op_errstr, "")) cli_out ("%s", rsp.op_errstr); else @@ -663,7 +663,7 @@ gf_cli3_1_delete_volume_cbk (struct rpc_req *req, struct iovec *iov, volname = local->u.delete_vol.volname; - gf_log ("cli", GF_LOG_NORMAL, "Received resp to delete volume"); + gf_log ("cli", GF_LOG_INFO, "Received resp to delete volume"); if (rsp.op_ret && strcmp (rsp.op_errstr, "")) cli_out (rsp.op_errstr); @@ -677,7 +677,7 @@ out: cli_local_wipe (local); if (rsp.volname) free (rsp.volname); - gf_log ("", GF_LOG_NORMAL, "Returning with %d", ret); + gf_log ("", GF_LOG_INFO, "Returning with %d", ret); return ret; } @@ -711,7 +711,7 @@ gf_cli3_1_start_volume_cbk (struct rpc_req *req, struct iovec *iov, if (local) volname = local->u.start_vol.volname; - gf_log ("cli", GF_LOG_NORMAL, "Received resp to start volume"); + gf_log ("cli", GF_LOG_INFO, "Received resp to start volume"); if (rsp.op_ret && strcmp (rsp.op_errstr, "")) cli_out ("%s", rsp.op_errstr); @@ -760,7 +760,7 @@ gf_cli3_1_stop_volume_cbk (struct rpc_req *req, struct iovec *iov, if (local) volname = local->u.start_vol.volname; - gf_log ("cli", GF_LOG_NORMAL, "Received resp to stop volume"); + gf_log ("cli", GF_LOG_INFO, "Received resp to stop volume"); if (rsp.op_ret && strcmp (rsp.op_errstr, "")) cli_out (rsp.op_errstr); @@ -912,7 +912,7 @@ gf_cli3_1_rename_volume_cbk (struct rpc_req *req, struct iovec *iov, } - gf_log ("cli", GF_LOG_NORMAL, "Received resp to probe"); + gf_log ("cli", GF_LOG_INFO, "Received resp to probe"); cli_out ("Rename volume %s", (rsp.op_ret) ? "unsuccessful": "successful"); @@ -940,7 +940,7 @@ gf_cli3_1_reset_volume_cbk (struct rpc_req *req, struct iovec *iov, goto out; } - gf_log ("cli", GF_LOG_NORMAL, "Received resp to reset"); + gf_log ("cli", GF_LOG_INFO, "Received resp to reset"); if (rsp.op_ret && strcmp (rsp.op_errstr, "")) cli_out ("%s", rsp.op_errstr); @@ -972,7 +972,7 @@ gf_cli3_1_set_volume_cbk (struct rpc_req *req, struct iovec *iov, goto out; } - gf_log ("cli", GF_LOG_NORMAL, "Received resp to set"); + gf_log ("cli", GF_LOG_INFO, "Received resp to set"); if (rsp.op_ret && strcmp (rsp.op_errstr, "")) cli_out ("%s", rsp.op_errstr); @@ -1005,7 +1005,7 @@ gf_cli3_1_add_brick_cbk (struct rpc_req *req, struct iovec *iov, } - gf_log ("cli", GF_LOG_NORMAL, "Received resp to add brick"); + gf_log ("cli", GF_LOG_INFO, "Received resp to add brick"); if (rsp.op_ret && strcmp (rsp.op_errstr, "")) cli_out ("%s", rsp.op_errstr); @@ -1041,7 +1041,7 @@ gf_cli3_1_remove_brick_cbk (struct rpc_req *req, struct iovec *iov, goto out; } - gf_log ("cli", GF_LOG_NORMAL, "Received resp to remove brick"); + gf_log ("cli", GF_LOG_INFO, "Received resp to remove brick"); if (rsp.op_ret && strcmp (rsp.op_errstr, "")) cli_out ("%s", rsp.op_errstr); @@ -1166,7 +1166,7 @@ gf_cli3_1_replace_brick_cbk (struct rpc_req *req, struct iovec *iov, rb_operation_str = rsp.op_errstr; } - gf_log ("cli", GF_LOG_NORMAL, "Received resp to replace brick"); + gf_log ("cli", GF_LOG_INFO, "Received resp to replace brick"); cli_out ("%s", rb_operation_str ? rb_operation_str : "Unknown operation"); @@ -1418,7 +1418,7 @@ gf_cli3_1_quota_cbk (struct rpc_req *req, struct iovec *iov, if (rsp.limit_list) print_limit_list (rsp.volname, rsp.limit_list); } else { - gf_log ("cli", GF_LOG_NORMAL, "Received resp to quota command "); + gf_log ("cli", GF_LOG_INFO, "Received resp to quota command "); if (rsp.op_errstr) cli_out ("%s", rsp.op_errstr); else @@ -1450,7 +1450,7 @@ gf_cli3_1_getspec_cbk (struct rpc_req *req, struct iovec *iov, goto out; } - gf_log ("cli", GF_LOG_NORMAL, "Received resp to getspec"); + gf_log ("cli", GF_LOG_INFO, "Received resp to getspec"); spec = GF_MALLOC (rsp.op_ret + 1, cli_mt_char); if (!spec) { @@ -1487,7 +1487,7 @@ gf_cli3_1_pmap_b2p_cbk (struct rpc_req *req, struct iovec *iov, goto out; } - gf_log ("cli", GF_LOG_NORMAL, "Received resp to pmap b2p"); + gf_log ("cli", GF_LOG_INFO, "Received resp to pmap b2p"); cli_out ("%d", rsp.port); GF_FREE (spec); diff --git a/cli/src/input.c b/cli/src/input.c index 5c38efe13e7..b9d1d24e6a8 100644 --- a/cli/src/input.c +++ b/cli/src/input.c @@ -43,7 +43,7 @@ cli_batch (void *d) ret = cli_cmd_process (state, state->argc, state->argv); - gf_log ("", GF_LOG_NORMAL, "Exiting with: %d", ret); + gf_log ("", GF_LOG_INFO, "Exiting with: %d", ret); exit (ret); return NULL; |