From 7c7707115a54e6be692f8c678fa5378982875509 Mon Sep 17 00:00:00 2001 From: "Bryn M. Reeves" Date: Sat, 13 Sep 2014 10:52:54 +0100 Subject: [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 --- sos/sosreport.py | 3 +++ 1 file changed, 3 insertions(+) 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: -- cgit