From 1d0729a9dcfe3f3cebb961114c9bc05136cf8cfb Mon Sep 17 00:00:00 2001 From: Jake Hunsaker Date: Thu, 22 Apr 2021 15:08:07 -0400 Subject: [logging] Fix archive debug logging, adjust verbosity levels Fixes an issue where archive debug logging was controlled by the use of `--debug` rather than `--verbose`. Removes a superfluous log in `FileCacheArchive.add_link()`. Also, adjusts the different verbosity levels to be more meaninful. Now, the use of `-v` will enable debug logging but will not print those messages to console, `-vv` will print debug logging to console, while `-vvv` will enable archive debug logging which is expected to be significant due to most file operations being logging at some point with archive debug logging. Resolves: #2507 Signed-off-by: Jake Hunsaker --- man/en/sos.1 | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'man/en') diff --git a/man/en/sos.1 b/man/en/sos.1 index 2aee4ede..473c0551 100644 --- a/man/en/sos.1 +++ b/man/en/sos.1 @@ -116,6 +116,14 @@ Specify the number of threads sosreport will use for concurrency. Defaults to 4. .B \-v, \--verbose Increase logging verbosity. May be specified multiple times to enable additional debugging messages. + +The following table summarizes the effects of different verbosity levels: + + 1 (-v) : Enable debug messages for sos.log. Show individual plugins starting. + 2 (-vv) : Also print debug messages to console. + 3 (-vvv) : Enable debug messages for archive file operations. Note this will dramatically + increase the amount of logging. + .TP .B \-q, \--quiet Only log fatal errors to stderr. -- cgit