diff options
author | Krishnan Parthasarathi <kparthas@redhat.com> | 2012-08-17 14:19:39 +0530 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2012-08-17 02:22:02 -0700 |
commit | 753f8c13245220c4b9ec6364a5e644274a36b1d6 (patch) | |
tree | 0b2d61200605ef15a25f42b30f75460e8e2beb27 /xlators/cluster/afr/src/afr-self-heal-data.c | |
parent | 1df75bc835a75f17fa0fcd3722ef68f05f5f3200 (diff) |
afr: Avoid excessive logging in self-heal.v3.3.1qa1
- (Excessive) Logging has been very useful as 'bread-crumbs' in
many a root-cause analyses. This patch aims at avoiding logging when
the information could be reconstructed using the xattrs, statedump,
and/or "volume heal" CLI commands.
Change-Id: I8f646cbee44e98495ea6963f9dfcae95375c8900
BUG: 844804
Signed-off-by: Krishnan Parthasarathi <kparthas@redhat.com>
Reviewed-on: http://review.gluster.com/3827
Reviewed-by: Pranith Kumar Karampuri <pranithk@gluster.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'xlators/cluster/afr/src/afr-self-heal-data.c')
-rw-r--r-- | xlators/cluster/afr/src/afr-self-heal-data.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/cluster/afr/src/afr-self-heal-data.c b/xlators/cluster/afr/src/afr-self-heal-data.c index 72bf8d4b9..423e1c804 100644 --- a/xlators/cluster/afr/src/afr-self-heal-data.c +++ b/xlators/cluster/afr/src/afr-self-heal-data.c @@ -91,7 +91,7 @@ afr_sh_data_flush_cbk (call_frame_t *frame, void *cookie, xlator_t *this, LOCK (&frame->lock); { if (op_ret == -1) { - gf_log (this->name, GF_LOG_INFO, + gf_log (this->name, GF_LOG_ERROR, "flush failed on %s on subvolume %s: %s", local->loc.path, priv->children[child_index]->name, strerror (op_errno)); @@ -826,7 +826,7 @@ afr_lookup_select_read_child_by_txn_type (xlator_t *this, afr_local_t *local, sources, success_children, txn_type, &subvol_status, _gf_false); if (subvol_status & SPLIT_BRAIN) { - gf_log (this->name, GF_LOG_WARNING, "%s: Possible split-brain", + gf_log (this->name, GF_LOG_DEBUG, "%s: Possible split-brain", local->loc.path); switch (txn_type) { case AFR_DATA_TRANSACTION: |