summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr/src/afr-self-heal-common.c
diff options
context:
space:
mode:
authorPranith Kumar K <pkarampu@redhat.com>2014-01-03 14:44:01 +0530
committerVijay Bellur <vbellur@redhat.com>2014-04-28 09:44:19 -0700
commit26843b00447cc14427b4f02ca136033b56ca093f (patch)
tree57ed6cc0b4fc3bbbad34ed427a88880760ff38b2 /xlators/cluster/afr/src/afr-self-heal-common.c
parent07ed48398e41df1b65202f3d2e0be6f2c3ca8ceb (diff)
heal: Enable logging for glfsheal.
logs will be written to <log-dir>/glfsheal-<volname>.log Moved some non-essential frequent logs to DEBUG. BUG: 1039544 Change-Id: I2aceda6e3092f8c5052e7a4b8b5dec3cdeebd9a9 Signed-off-by: Pranith Kumar K <pkarampu@redhat.com> Reviewed-on: http://review.gluster.org/7481 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Ravishankar N <ravishankar@redhat.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'xlators/cluster/afr/src/afr-self-heal-common.c')
-rw-r--r--xlators/cluster/afr/src/afr-self-heal-common.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/cluster/afr/src/afr-self-heal-common.c b/xlators/cluster/afr/src/afr-self-heal-common.c
index ab9e44b41e0..4916bf45d68 100644
--- a/xlators/cluster/afr/src/afr-self-heal-common.c
+++ b/xlators/cluster/afr/src/afr-self-heal-common.c
@@ -2346,6 +2346,9 @@ afr_self_heal_completion_cbk (call_frame_t *bgsh_frame, xlator_t *this)
loglevel = GF_LOG_DEBUG;
}
+ if (sh->dry_run)
+ loglevel = GF_LOG_DEBUG;
+
afr_log_self_heal_completion_status (local, loglevel);
FRAME_SU_UNDO (bgsh_frame, afr_local_t);