12a457
From 1815cfbb56daf4a4054044cf5db0dddf1e2f4dd3 Mon Sep 17 00:00:00 2001
12a457
From: Gaurav Kumar Garg <garg.gaurav52@gmail.com>
12a457
Date: Wed, 12 Aug 2015 01:09:41 +0530
12a457
Subject: [PATCH 61/80] glusterd: DEBUG log should not come after resetting client log level
12a457
12a457
This patch is backport of: http://review.gluster.org/#/c/11887/
12a457
12a457
After resetting diagnostics.client-log-level option still DEBUG log is
12a457
logging in scrubber and bitrot log file. After resetting any option
12a457
value of that options goes to default value.
12a457
12a457
This patch will set the default value of client and brick log level to
12a457
"INFO" log level.
12a457
12a457
GlusterFS release 3.7.9 patch url: http://review.gluster.org/#/c/13640/
12a457
12a457
  >> Change-Id: I4cf04754dcf5ddc908dae4d9bdf525cfcd6cc2bd
12a457
  >> BUG: 1252696
12a457
  >> Signed-off-by: Gaurav Kumar Garg <ggarg@redhat.com>
12a457
  >> Reviewed-on: http://review.gluster.org/11887
12a457
  >> Tested-by: NetBSD Build System <jenkins@build.gluster.org>
12a457
  >> Tested-by: Gluster Build System <jenkins@build.gluster.com>
12a457
  >> Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
12a457
(cherry picked from commit 6e17fb2097f941798e1d56728fd3d61e525a39a5)
12a457
12a457
Change-Id: I95b89db25de14cb32f8b392ca2b7ac3531617708
12a457
BUG: 1231150
12a457
Signed-off-by: Gaurav Kumar Garg <ggarg@redhat.com>
12a457
Reviewed-on: https://code.engineering.redhat.com/gerrit/71848
12a457
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
12a457
Tested-by: Atin Mukherjee <amukherj@redhat.com>
12a457
---
12a457
 xlators/mgmt/glusterd/src/glusterd-volume-set.c |    2 ++
12a457
 1 files changed, 2 insertions(+), 0 deletions(-)
12a457
12a457
diff --git a/xlators/mgmt/glusterd/src/glusterd-volume-set.c b/xlators/mgmt/glusterd/src/glusterd-volume-set.c
12a457
index 7bb8f91..0381dd1 100644
12a457
--- a/xlators/mgmt/glusterd/src/glusterd-volume-set.c
12a457
+++ b/xlators/mgmt/glusterd/src/glusterd-volume-set.c
12a457
@@ -1171,11 +1171,13 @@ struct volopt_map_entry glusterd_volopt_map[] = {
12a457
         },
12a457
         { .key         = "diagnostics.brick-log-level",
12a457
           .voltype     = "debug/io-stats",
12a457
+          .value       = "INFO",
12a457
           .option      = "!brick-log-level",
12a457
           .op_version  = 1
12a457
         },
12a457
         { .key        = "diagnostics.client-log-level",
12a457
           .voltype    = "debug/io-stats",
12a457
+          .value      = "INFO",
12a457
           .option     = "!client-log-level",
12a457
           .op_version = 1,
12a457
           .flags      = OPT_FLAG_CLIENT_OPT
12a457
-- 
12a457
1.7.1
12a457