Blob Blame History Raw
commit 23cdbd97a6bd2e44d87f01d6bf90b66667c4d7be
Author: Bryn M. Reeves <bmr@redhat.com>
Date:   Mon Feb 3 12:09:57 2014 +0000

    Fix verbose file logging
    
    Prior versions of sos enable debug logging to the embedded log
    file (sos_logs/sos.log) when a single '-v' is given. Restore this
    behaviour and ensure that command-not-found messages are reported
    at 'info' rather than 'warning' level.
    
    Signed-off-by: Bryn M. Reeves <bmr@redhat.com>

diff --git a/sos/plugins/__init__.py b/sos/plugins/__init__.py
index 681299a..b4768b0 100644
--- a/sos/plugins/__init__.py
+++ b/sos/plugins/__init__.py
@@ -482,7 +482,7 @@ class Plugin(object):
             self.soslog.warning("command '%s' timed out after %ds"
                     % (prog, timeout))
         if status == 127:
-            self.soslog.warning("could not run '%s': command not found" % prog)
+            self.soslog.info("could not run '%s': command not found" % prog)
         return (status, output, runtime)
 
     def call_ext_prog(self, prog, timeout=300):
diff --git a/sos/sosreport.py b/sos/sosreport.py
index fb3aea7..22e0ab2 100644
--- a/sos/sosreport.py
+++ b/sos/sosreport.py
@@ -651,6 +651,7 @@ class SoSReport(object):
                 flog.setLevel(logging.DEBUG)
             elif self.opts.verbosity > 0:
                 console.setLevel(logging.INFO)
+                flog.setLevel(logging.DEBUG)
             else:
                 console.setLevel(logging.WARNING)
             self.soslog.addHandler(console)