[lvm-devel] master - debug: turn message into debug

Alasdair Kergon agk at fedoraproject.org
Wed Sep 10 22:02:19 UTC 2014


Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=47ff145e08f689306762840efd72e8a4e1c91214
Commit:        47ff145e08f689306762840efd72e8a4e1c91214
Parent:        55aa3cc813620ecbf2f569720fb24107e737b836
Author:        Zdenek Kabelac <zkabelac at redhat.com>
AuthorDate:    Wed Sep 10 10:10:13 2014 +0200
Committer:     Zdenek Kabelac <zkabelac at redhat.com>
CommitterDate: Wed Sep 10 10:10:13 2014 +0200

debug: turn message into debug

This message should be printed only for activation commands,
however since the handling of this flag is not correct
(rhbz 1140029) and will require further changes,
do now just a minor change and switch message into log_debug
(so it's not printed i.e. with every  'lvs -v')
---
 tools/lvmcmdline.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tools/lvmcmdline.c b/tools/lvmcmdline.c
index 10dac8f..14ea7a6 100644
--- a/tools/lvmcmdline.c
+++ b/tools/lvmcmdline.c
@@ -1343,7 +1343,7 @@ int lvm_run_command(struct cmd_context *cmd, int argc, char **argv)
 		goto_out;
 	_apply_settings(cmd);
 	if (cmd->degraded_activation)
-		log_verbose("DEGRADED MODE. Incomplete RAID LVs will be processed.");
+		log_debug("DEGRADED MODE. Incomplete RAID LVs will be processed.");
 
 	if (!get_activation_monitoring_mode(cmd, &monitoring))
 		goto_out;




More information about the lvm-devel mailing list