summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGaurav Kumar Garg <garg.gaurav52@gmail.com>2015-08-12 01:09:41 +0530
committerAtin Mukherjee <amukherj@redhat.com>2015-12-15 04:57:17 -0800
commit6e17fb2097f941798e1d56728fd3d61e525a39a5 (patch)
treefaa94a861dab8e74422f3f673d287c081df66593
parentf870585ca23a6329442d550e325ad81cec0135b8 (diff)
glusterd: DEBUG log should not come after resetting client log level
After resetting diagnostics.client-log-level option still DEBUG log is logging in scrubber and bitrot log file. After resetting any option value of that options goes to default value. This patch will set the default value of client and brick log level to "INFO" log level. Change-Id: I4cf04754dcf5ddc908dae4d9bdf525cfcd6cc2bd BUG: 1252696 Signed-off-by: Gaurav Kumar Garg <ggarg@redhat.com> Reviewed-on: http://review.gluster.org/11887 Tested-by: NetBSD Build System <jenkins@build.gluster.org> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-volume-set.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-volume-set.c b/xlators/mgmt/glusterd/src/glusterd-volume-set.c
index cbda00250e1..e4765f6f0d9 100644
--- a/xlators/mgmt/glusterd/src/glusterd-volume-set.c
+++ b/xlators/mgmt/glusterd/src/glusterd-volume-set.c
@@ -1037,11 +1037,13 @@ struct volopt_map_entry glusterd_volopt_map[] = {
},
{ .key = "diagnostics.brick-log-level",
.voltype = "debug/io-stats",
+ .value = "INFO",
.option = "!brick-log-level",
.op_version = 1
},
{ .key = "diagnostics.client-log-level",
.voltype = "debug/io-stats",
+ .value = "INFO",
.option = "!client-log-level",
.op_version = 1,
.flags = OPT_FLAG_CLIENT_OPT