aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2014-09-13 10:52:54 +0100
committerBryn M. Reeves <bmr@redhat.com>2014-09-13 10:52:54 +0100
commit7c7707115a54e6be692f8c678fa5378982875509 (patch)
tree2e66d8978bde442d31cb09e36d476c1fb2a2a063
parent419c50eadc647ac6d1d3edc34b14ed8303906a67 (diff)
downloadsos-7c7707115a54e6be692f8c678fa5378982875509.tar.gz
[sosreport] log sosreport command line
Log the command line given to sosreport in the report log: INFO: [sos.sosreport:setup] executing 'sosreport -o lvm2 --batch --build --debug' Fixes #392. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/sosreport.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/sos/sosreport.py b/sos/sosreport.py
index d5f355d4..c0813b8f 100644
--- a/sos/sosreport.py
+++ b/sos/sosreport.py
@@ -567,6 +567,7 @@ class SoSReport(object):
self.global_plugin_options = {}
self.archive = None
self.tempfile_util = None
+ self._args = args
try:
import signal
@@ -1005,6 +1006,8 @@ class SoSReport(object):
self._exit(1)
def setup(self):
+ msg = "[%s:%s] executing 'sosreport %s'"
+ self.soslog.info(msg % (__name__, "setup", " ".join(self._args)))
self.ui_log.info(_(" Setting up plugins ..."))
for plugname, plug in self.loaded_plugins:
try: