From 6fcccc0af61b4e11ed9deeb0e4357d0fcfe8401b Mon Sep 17 00:00:00 2001 From: Anoop C S Date: Thu, 9 Jul 2015 11:06:01 +0530 Subject: features/ctr: Reduce the log-level for ctr-disabled message Backport of http://review.gluster.org/#/c/11592/ Since by default CTR translator is disabled, the following log message is being displayed in brick logs. [ctr-helper.c:256:extract_ctr_options] 0-gfdbdatastore: CTR Xlator is disabled. Therefore this change is to reduce the log-level to INFO. >Change-Id: I3b82d6b0dc0445286f91490fb497167a36914a2b >BUG: 1241379 >Signed-off-by: Anoop C S >Reviewed-on: http://review.gluster.org/11592 >Reviewed-by: Joseph Fernandes >Tested-by: Joseph Fernandes >Tested-by: NetBSD Build System BUG: 1275157 Signed-off-by: Anoop C S (cherry picked from commit b6a7a44079c724cbf6fb24c7ac83892f551dc5f6) Change-Id: I1bcea5258da525b955606f2353f749b2e37449cc Reviewed-on: http://review.gluster.org/12424 Tested-by: Gluster Build System Reviewed-by: Dan Lambright Tested-by: Dan Lambright --- xlators/features/changetimerecorder/src/ctr-helper.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xlators/features/changetimerecorder/src/ctr-helper.c b/xlators/features/changetimerecorder/src/ctr-helper.c index f5d4c474674..047abd9f032 100644 --- a/xlators/features/changetimerecorder/src/ctr-helper.c +++ b/xlators/features/changetimerecorder/src/ctr-helper.c @@ -247,11 +247,11 @@ int extract_ctr_options (xlator_t *this, gf_ctr_private_t *_priv) { GF_ASSERT (this); GF_ASSERT (_priv); - /*Checking if the CTR Translator is enabled. By Default its enabled*/ + /*Checking if the CTR Translator is enabled. By default its disabled*/ _priv->enabled = _gf_false; GF_OPTION_INIT ("ctr-enabled", _priv->enabled, bool, out); if (!_priv->enabled) { - gf_msg (GFDB_DATA_STORE, GF_LOG_ERROR, 0, + gf_msg (GFDB_DATA_STORE, GF_LOG_INFO, 0, CTR_MSG_XLATOR_DISABLED, "CTR Xlator is disabled."); ret = 0; -- cgit