From 37b4b7ccad5a479ed2ce96598e902a12fd457bd5 Mon Sep 17 00:00:00 2001 From: Raghavendra Bhat Date: Wed, 20 Jul 2011 12:21:12 +0530 Subject: debug/io-stats: allow log-level to be set to INFO Change-Id: Ieba6591b0641dcb7dad724c1d8199dc5e91b6bfd BUG: 3198 Reviewed-on: http://review.gluster.com/43 Tested-by: Gluster Build System Reviewed-by: Anand Avati --- libglusterfs/src/xlator.c | 2 +- xlators/debug/io-stats/src/io-stats.c | 11 +++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/libglusterfs/src/xlator.c b/libglusterfs/src/xlator.c index ccc32b7111..359c4d9bc2 100644 --- a/libglusterfs/src/xlator.c +++ b/libglusterfs/src/xlator.c @@ -343,7 +343,7 @@ _volume_option_value_validate_attacherr (xlator_t *xl, strcat (given_array, "."); } - gf_log (xl->name, GF_LOG_ERROR, + gf_log_callingfn (xl->name, GF_LOG_ERROR, "option %s %s: '%s' is not valid " "(possible options are %s)", pair->key, pair->value->data, diff --git a/xlators/debug/io-stats/src/io-stats.c b/xlators/debug/io-stats/src/io-stats.c index 3a20324442..ed15a4f843 100644 --- a/xlators/debug/io-stats/src/io-stats.c +++ b/xlators/debug/io-stats/src/io-stats.c @@ -2416,7 +2416,7 @@ iostats_configure_options (xlator_t *this, dict_t *xl_options, if (!ret) { if (!is_gf_log_command(this, "trusted.glusterfs.set-log-level", log_str)) { - gf_log (this->name, GF_LOG_DEBUG, + gf_log (this->name, GF_LOG_INFO, "changing log-level to %s", log_str); } } @@ -2731,7 +2731,8 @@ struct volume_options options[] = { }, { .key = {"log-level"}, .type = GF_OPTION_TYPE_STR, - .value = { "DEBUG", "WARNING", "ERROR", "CRITICAL", "NONE", "TRACE"} + .value = { "DEBUG", "WARNING", "ERROR", "INFO", + "CRITICAL", "NONE", "TRACE"} }, /* These are synthetic entries to assist validation of CLI's * @@ -2740,7 +2741,8 @@ struct volume_options options[] = { .type = GF_OPTION_TYPE_STR, .default_value = "INFO", .description = "Changes the log-level of the clients", - .value = { "DEBUG", "WARNING", "ERROR", "CRITICAL", "NONE", "TRACE"} + .value = { "DEBUG", "WARNING", "ERROR", "INFO", + "CRITICAL", "NONE", "TRACE"} }, { .key = {"sys-log-level"}, .type = GF_OPTION_TYPE_STR, @@ -2752,7 +2754,8 @@ struct volume_options options[] = { .type = GF_OPTION_TYPE_STR, .default_value = "INFO", .description = "Changes the log-level of the bricks", - .value = { "DEBUG", "WARNING", "ERROR", "CRITICAL", "NONE", "TRACE"} + .value = { "DEBUG", "WARNING", "ERROR", "INFO", + "CRITICAL", "NONE", "TRACE"} }, { .key = {NULL} }, -- cgit