diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2013-11-26 18:39:43 +0000 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2013-11-26 18:39:43 +0000 |
commit | 85e86e24c24165af582ab0c75fd391aaa871f145 (patch) | |
tree | ec26f0556f90f347fa5b620018f8a99197ad4433 | |
parent | 7649b791ee3372a660daad6e29666c2e1220486d (diff) | |
download | sos-85e86e24c24165af582ab0c75fd391aaa871f145.tar.gz |
Make command quoting in log messages consistent
The last commit adds a log message for commands that time out but
is inconsistent with other messages that include an external
command string. Quote the command for better readability.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r-- | sos/plugins/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sos/plugins/__init__.py b/sos/plugins/__init__.py index dd2255cf..7c63631c 100644 --- a/sos/plugins/__init__.py +++ b/sos/plugins/__init__.py @@ -485,7 +485,7 @@ class Plugin(object): def get_command_output(self, prog, timeout=300): (status, output, runtime) = sos_get_command_output(prog, timeout) if status == 124: - self.soslog.warning("command %s timed out after %ds" + 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) |