From 438e0050dfed1f8f2d74670a5f7c5e8c8819c777 Mon Sep 17 00:00:00 2001 From: Alasdair G Kergon Date: Sat, 25 Aug 2012 20:35:48 +0100 Subject: config: add silent mode Accept -q as the short form of --quiet. Suppress non-essential standard output if -q is given twice. Treat log/silent in lvm.conf as equivalent to -qq. Review all log_print messages and change some to log_print_unless_silent. When silent, the following commands still produce output: dumpconfig, lvdisplay, lvmdiskscan, lvs, pvck, pvdisplay, pvs, version, vgcfgrestore -l, vgdisplay, vgs. [Needs checking.] Non-essential messages are shifted from log level 4 to log level 5 for syslog and lvm2_log_fn purposes. --- doc/example.conf.in | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'doc') diff --git a/doc/example.conf.in b/doc/example.conf.in index 576397bb..479b74bf 100644 --- a/doc/example.conf.in +++ b/doc/example.conf.in @@ -234,6 +234,15 @@ log { # There are three levels of verbosity, 3 being the most verbose. verbose = 0 + # Set to 1 to suppress all non-essential messages from stdout. + # This has the same effect as -qq. + # When this is set, the following commands still produce output: + # dumpconfig, lvdisplay, lvmdiskscan, lvs, pvck, pvdisplay, + # pvs, version, vgcfgrestore -l, vgdisplay, vgs. + # Non-essential messages are shifted from log level 4 to log level 5 + # for syslog and lvm2_log_fn purposes. + silent = 0 + # Should we send log messages through syslog? # 1 is yes; 0 is no. syslog = 1 -- cgit