summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 902e1ea7ac1..e0d9849d965 100644
--- a/xlators/debug/io-stats/src/io-stats.c
+++ b/xlators/debug/io-stats/src/io-stats.c
@@ -2398,6 +2398,8 @@ init (xlator_t *this)
int i = 0;
char *sys_log_str = NULL;
int sys_log_level = -1;
+ char *log_str = NULL;
+ int log_level = -1;
int ret = -1;
if (!this)
@@ -2475,6 +2477,12 @@ init (xlator_t *this)
set_sys_log_level (sys_log_level);
}
+ GF_OPTION_INIT ("log-level", log_str, str, out);
+ if (log_str) {
+ log_level = glusterd_check_log_level (log_str);
+ gf_log_set_loglevel (log_level);
+ }
+
this->private = conf;
ret = 0;
out: