diff options
author | Raghavendra Bhat <raghavendrabhat@gluster.com> | 2011-07-20 12:21:12 +0530 |
---|---|---|
committer | Anand Avati <avati@gluster.com> | 2011-07-20 06:15:42 -0700 |
commit | 37b4b7ccad5a479ed2ce96598e902a12fd457bd5 (patch) | |
tree | 503bed5f1024a3a158c8e7dbff2b3e8d8c1f605f | |
parent | c6053cac7794dfd9bf693e91cd76c2a45d7859eb (diff) |
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 <jenkins@build.gluster.com>
Reviewed-by: Anand Avati <avati@gluster.com>
-rw-r--r-- | libglusterfs/src/xlator.c | 2 | ||||
-rw-r--r-- | 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 ccc32b71118..359c4d9bc2d 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 3a203244421..ed15a4f8439 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} }, |