From 8cde114f65e7a08c9ca3637ff46b8b6cd6dc9426 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Sat, 10 Aug 2013 20:49:12 -0700 Subject: glusterd: Move certain logs into 'DEBUG' level Confusing "Error" messages in logs can cause user panic and false positives - avoid them as necessary in future. Change-Id: I906c64eea879b19a8db099c89d1d7f874e5530db BUG: 995784 Signed-off-by: Harshavardhana Reviewed-on: http://review.gluster.org/5555 Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- libglusterfs/src/store.c | 5 +++-- xlators/mgmt/glusterd/src/glusterd-store.c | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/libglusterfs/src/store.c b/libglusterfs/src/store.c index 621146bea..48c79ee02 100644 --- a/libglusterfs/src/store.c +++ b/libglusterfs/src/store.c @@ -403,8 +403,9 @@ gf_store_handle_retrieve (char *path, gf_store_handle_t **handle) ret = stat (path, &statbuf); if (ret) { - gf_log ("", GF_LOG_ERROR, "Unable to retrieve store handle " - "%s, error: %s", path, strerror (errno)); + gf_log ("", GF_LOG_ERROR, "Path corresponding to " + "%s, returned error: (%s)", + path, strerror (errno)); goto out; } ret = gf_store_handle_new (path, handle); diff --git a/xlators/mgmt/glusterd/src/glusterd-store.c b/xlators/mgmt/glusterd/src/glusterd-store.c index 71c8428ec..2e6dd6b43 100644 --- a/xlators/mgmt/glusterd/src/glusterd-store.c +++ b/xlators/mgmt/glusterd/src/glusterd-store.c @@ -1302,7 +1302,7 @@ glusterd_retrieve_op_version (xlator_t *this, int *op_version) ret = gf_store_handle_retrieve (path, &handle); if (ret) { - gf_log ("", GF_LOG_ERROR, "Unable to get store " + gf_log ("", GF_LOG_DEBUG, "Unable to get store " "handle!"); goto out; } @@ -1403,7 +1403,7 @@ glusterd_retrieve_uuid () ret = gf_store_handle_retrieve (path, &handle); if (ret) { - gf_log ("", GF_LOG_ERROR, "Unable to get store " + gf_log ("", GF_LOG_DEBUG, "Unable to get store" "handle!"); goto out; } @@ -1415,7 +1415,7 @@ glusterd_retrieve_uuid () &uuid_str); if (ret) { - gf_log ("", GF_LOG_INFO, "No previous uuid is present"); + gf_log ("", GF_LOG_DEBUG, "No previous uuid is present"); goto out; } -- cgit