From 232235a9ddeaf33159ee8af809efee440b06c6d1 Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Tue, 27 Jul 2010 03:13:55 +0000 Subject: cluster/afr: Logging improvement for self-heal Signed-off-by: Pranith Kumar K Signed-off-by: Anand V. Avati BUG: 1037 (selfheal information in normal logging mode) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1037 --- xlators/cluster/afr/src/afr-self-heal-common.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'xlators/cluster/afr/src/afr-self-heal-common.c') diff --git a/xlators/cluster/afr/src/afr-self-heal-common.c b/xlators/cluster/afr/src/afr-self-heal-common.c index d37c1b25d..e3e484aab 100644 --- a/xlators/cluster/afr/src/afr-self-heal-common.c +++ b/xlators/cluster/afr/src/afr-self-heal-common.c @@ -1501,6 +1501,7 @@ afr_self_heal_completion_cbk (call_frame_t *bgsh_frame, xlator_t *this) afr_private_t * priv = NULL; afr_local_t * local = NULL; afr_self_heal_t * sh = NULL; + char sh_type_str[256] = {0,}; priv = this->private; local = bgsh_frame->local; @@ -1512,8 +1513,11 @@ afr_self_heal_completion_cbk (call_frame_t *bgsh_frame, xlator_t *this) afr_set_split_brain (this, local->cont.lookup.inode, _gf_false); } - gf_log (this->name, GF_LOG_TRACE, - "background self-heal completed"); + afr_self_heal_type_str_get(sh, sh_type_str, + sizeof(sh_type_str)); + gf_log (this->name, GF_LOG_NORMAL, + "background %s self-heal completed on %s", sh_type_str, + local->loc.path); if (!sh->unwound) { sh->unwind (sh->orig_frame, this); -- cgit