diff options
author | Jake Hunsaker <jhunsake@redhat.com> | 2018-03-02 15:58:10 -0500 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2018-05-09 15:35:15 +0100 |
commit | c33fe2e12f8fc57acbbef1867a05e0da072c9e4a (patch) | |
tree | 631b1af32a656a5484ff9946fa60a5c818224e0e | |
parent | 3a5299df12d133e923173dbb5a3653afc06848b5 (diff) | |
download | sos-c33fe2e12f8fc57acbbef1867a05e0da072c9e4a.tar.gz |
[archive] Change log level for missing compression tools
Changes the log level from error to info when sos is checking for valid
compression tools (xz, bzip2, gzip) and finds that one does not exist.
The fact that one of the compression methods isn't available is not
necessarily an error depending on where sos is being run, for example in
a container that provides xz but not gzip. In this case an error is
printed saying gzip is not available, even if sos would never have used
gzip due to the presence of xz, which could cause end user confusion.
If no supported compression methods are available, then that is still
properly reported as an error.
Resolves: #1235
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r-- | sos/archive.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sos/archive.py b/sos/archive.py index 80e27b84..f2c4935b 100644 --- a/sos/archive.py +++ b/sos/archive.py @@ -439,7 +439,7 @@ class TarFileArchive(FileCacheArchive): if is_executable(method): methods.append(method) else: - self.log_error("\"%s\" command not found." % method) + self.log_info("\"%s\" compression method unavailable" % method) if self.method in methods: methods = [self.method] |