aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Quigley <code@bryanquigley.com>2020-08-11 17:40:50 -0700
committerJake Hunsaker <jhunsake@redhat.com>2020-08-13 10:14:16 -0400
commit777dcb90f66cece8ab15caee225c8a8d798a4596 (patch)
treea57e27dcf7ca5d3cefea0e4d18cdcd45310ef628
parent5af47f2b0925cdf08dc499df5527f0b99aa7ef40 (diff)
downloadsos-777dcb90f66cece8ab15caee225c8a8d798a4596.tar.gz
[general] include error in messages
Signed-off-by: Bryan Quigley <code@bryanquigley.com> Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
-rw-r--r--sos/report/__init__.py1
-rw-r--r--sos/report/plugins/__init__.py4
2 files changed, 3 insertions, 2 deletions
diff --git a/sos/report/__init__.py b/sos/report/__init__.py
index 3e3b504b..2caade8f 100644
--- a/sos/report/__init__.py
+++ b/sos/report/__init__.py
@@ -335,6 +335,7 @@ class SoSReport(SoSComponent):
devs.extend(glob.glob("/sys/class/%s/*" % devdir))
return devs
except Exception as err:
+ self.soslog.error("Could not get fibre device list: %s" % err)
return []
def get_block_devs(self):
diff --git a/sos/report/plugins/__init__.py b/sos/report/plugins/__init__.py
index baf9a320..707c21fc 100644
--- a/sos/report/plugins/__init__.py
+++ b/sos/report/plugins/__init__.py
@@ -2021,8 +2021,8 @@ class SCLPlugin(RedHatPlugin):
prefix = open('/etc/scl/prefixes/%s' % scl, 'r').read()\
.rstrip('\n')
except Exception as e:
- self._log_error("Failed to find prefix for SCL %s, using %s"
- % (scl, prefix))
+ self._log_error("Error %s to find prefix for SCL %s, using %s"
+ % (e, scl, prefix))
# expand PATH by equivalent prefixes under the SCL tree
path = os.environ["PATH"]