[lvm-devel] [PATCH] logging: Promote command line to info

Marian Csontos mcsontos at redhat.com
Fri Feb 21 10:32:53 UTC 2014


Amount of information in debug is so high it is difficult to understand
when testing.

OTOH having command line in syslog increases log readability while not
using debug.
---
 tools/lvmcmdline.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/lvmcmdline.c b/tools/lvmcmdline.c
index 6fe4670..c692a63 100644
--- a/tools/lvmcmdline.c
+++ b/tools/lvmcmdline.c
@@ -1147,7 +1147,7 @@ int lvm_run_command(struct cmd_context *cmd, int argc, char **argv)
 		goto_out;
 	init_dmeventd_monitor(monitoring);
 
-	log_debug("Processing: %s", cmd->cmd_line);
+	log_info("Processing: %s", cmd->cmd_line);
 
 #ifdef O_DIRECT_SUPPORT
 	log_debug("O_DIRECT will be used");
-- 
1.7.12.1




More information about the lvm-devel mailing list