summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr/src/afr-self-heal-common.c
diff options
context:
space:
mode:
authorRavishankar N <ravishankar@redhat.com>2018-11-28 15:19:24 +0530
committerShyamsundar Ranganathan <srangana@redhat.com>2018-11-29 15:30:11 +0000
commit70ae565c759cb019b73c7b4d6ac3650293984bc2 (patch)
tree6030abec5c2f39c05f795867da0aa1fcf101754a /xlators/cluster/afr/src/afr-self-heal-common.c
parent4c3cfd0f85c1044c804b2c31d99a4bc3b1c1fe49 (diff)
glfsheal: add a '--nolog' flag
....and if set, change the log level to GF_LOG_NONE. This is useful for monitoring applications which invoke the heal info set of commands once every minute, leading to un-necessary glfsheal* logs in /var/log/glusterfs/. For example, we can now run `gluster volume heal <VOLNAME> info --nolog` `gluster volume heal <VOLNAME> info split-brain --nolog` etc. The default log level is still retained at GF_LOG_INFO. The patch also changes glfsheal internally to accept '--xml' instead of 'xml'. Note: The --nolog flag is *not* displayed in the help anywhere, for the sake of consistency in how the other flags are not displayed anywhere in the help. fixes: bz#1654229 Change-Id: Ia08b6aa6e4a0548379db7e313dd4411ebc66f206 Signed-off-by: Ravishankar N <ravishankar@redhat.com>
Diffstat (limited to 'xlators/cluster/afr/src/afr-self-heal-common.c')
0 files changed, 0 insertions, 0 deletions