summaryrefslogtreecommitdiffstats
path: root/xlators/debug/io-stats/src
diff options
context:
space:
mode:
authorVijay Bellur <vijay@gluster.com>2011-08-21 16:34:19 +0530
committerVijay Bellur <vijay@gluster.com>2011-08-21 04:12:32 -0700
commitaa07e855859d6a175fccb309ec3158e6ca894b0c (patch)
treea8d4e9121976f91d375a7d133d94aa2f4b68a3e2 /xlators/debug/io-stats/src
parent22b5de922b7d4ce57db48b3ad518e98a9c91f4ee (diff)
debug/io-stats: Handle log-level properly.
Change-Id: I8e5b8841705b161068bdb2ccd2ac119d6b250c88 BUG: 3415 Reviewed-on: http://review.gluster.com/284 Reviewed-by: Raghavendra Bhat <raghavendrabhat@gluster.com> Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'xlators/debug/io-stats/src')
-rw-r--r--xlators/debug/io-stats/src/io-stats.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/xlators/debug/io-stats/src/io-stats.c b/xlators/debug/io-stats/src/io-stats.c
index 7b334baa636..902e1ea7ac1 100644
--- a/xlators/debug/io-stats/src/io-stats.c
+++ b/xlators/debug/io-stats/src/io-stats.c
@@ -2335,6 +2335,8 @@ reconfigure (xlator_t *this, dict_t *options)
int ret = -1;
char *sys_log_str = NULL;
int sys_log_level = -1;
+ char *log_str = NULL;
+ int log_level = -1;
if (!this || !this->private)
goto out;
@@ -2356,6 +2358,12 @@ reconfigure (xlator_t *this, dict_t *options)
set_sys_log_level (sys_log_level);
}
+ GF_OPTION_RECONF ("log-level", log_str, options, str, out);
+ if (log_str) {
+ log_level = glusterd_check_log_level (log_str);
+ gf_log_set_loglevel (log_level);
+ }
+
ret = 0;
out:
gf_log (this->name, GF_LOG_DEBUG, "reconfigure returning %d", ret);