diff options
author | Pranith K <pranithk@gluster.com> | 2010-10-11 06:42:32 +0000 |
---|---|---|
committer | Vijay Bellur <vijay@dev.gluster.com> | 2010-10-11 07:31:25 -0700 |
commit | bf68324270f7e15f140ccb74ab355f8179cce92f (patch) | |
tree | 78f7e808c1b4974bdd786e60165f3bbce72a661f | |
parent | 47a87215e30d3ea2dc6ec9ae178f5a9e3eae9e96 (diff) |
Set correct logging level for log messages
Signed-off-by: Pranith Kumar K <pranithk@gluster.com>
Signed-off-by: Vijay Bellur <vijay@dev.gluster.com>
BUG: 1887 (logging mess)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1887
-rw-r--r-- | libglusterfs/src/dict.c | 2 | ||||
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-handler.c | 4 | ||||
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-op-sm.c | 6 | ||||
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-store.c | 3 |
4 files changed, 7 insertions, 8 deletions
diff --git a/libglusterfs/src/dict.c b/libglusterfs/src/dict.c index 6c4898516a5..bbd14fc863c 100644 --- a/libglusterfs/src/dict.c +++ b/libglusterfs/src/dict.c @@ -1200,7 +1200,7 @@ char * data_to_str (data_t *data) { if (!data) { - gf_log ("dict", GF_LOG_CRITICAL, + gf_log ("dict", GF_LOG_WARNING, "@data=%p", data); return NULL; } diff --git a/xlators/mgmt/glusterd/src/glusterd-handler.c b/xlators/mgmt/glusterd/src/glusterd-handler.c index 1c65df42230..51704b3d22c 100644 --- a/xlators/mgmt/glusterd/src/glusterd-handler.c +++ b/xlators/mgmt/glusterd/src/glusterd-handler.c @@ -438,7 +438,7 @@ glusterd_handle_cluster_lock (rpcsvc_request_t *req) ret = glusterd_op_sm_inject_event (GD_OP_EVENT_LOCK, ctx); out: - gf_log ("", GF_LOG_NORMAL, "Returning %d", ret); + gf_log ("", GF_LOG_DEBUG, "Returning %d", ret); return ret; } @@ -2654,7 +2654,7 @@ glusterd_op_txn_begin () ret = glusterd_op_sm_inject_event (GD_OP_EVENT_START_LOCK, NULL); - gf_log ("glusterd", GF_LOG_NORMAL, "Returning %d", ret); + gf_log ("glusterd", GF_LOG_DEBUG, "Returning %d", ret); out: if (locked && ret) diff --git a/xlators/mgmt/glusterd/src/glusterd-op-sm.c b/xlators/mgmt/glusterd/src/glusterd-op-sm.c index 78bec9a0e85..ca935841593 100644 --- a/xlators/mgmt/glusterd/src/glusterd-op-sm.c +++ b/xlators/mgmt/glusterd/src/glusterd-op-sm.c @@ -4578,7 +4578,7 @@ glusterd_op_send_cli_response (int32_t op, int32_t op_ret, goto out; out: - gf_log ("", GF_LOG_NORMAL, "Returning %d", ret); + gf_log ("", GF_LOG_DEBUG, "Returning %d", ret); return ret; } @@ -4657,7 +4657,7 @@ out: if (op_errstr && (strcmp (op_errstr, ""))) GF_FREE (op_errstr); - gf_log ("glusterd", GF_LOG_NORMAL, "Returning %d", ret); + gf_log ("glusterd", GF_LOG_DEBUG, "Returning %d", ret); return ret; } @@ -5256,7 +5256,7 @@ glusterd_op_set_cli_op (gf_mgmt_procnum op) opinfo.cli_op = op; out: - gf_log ("", GF_LOG_NORMAL, "Returning %d", ret); + gf_log ("", GF_LOG_DEBUG, "Returning %d", ret); return ret; } diff --git a/xlators/mgmt/glusterd/src/glusterd-store.c b/xlators/mgmt/glusterd/src/glusterd-store.c index c195600a8f4..4b989521974 100644 --- a/xlators/mgmt/glusterd/src/glusterd-store.c +++ b/xlators/mgmt/glusterd/src/glusterd-store.c @@ -748,8 +748,7 @@ glusterd_retrieve_uuid () &uuid_str); if (ret) { - gf_log ("", GF_LOG_CRITICAL, "Retrieving uuid failed" - " ret = %d", ret); + gf_log ("", GF_LOG_NORMAL, "No previous uuid is present"); goto out; } |