aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorshnavid <shnavid@ef72aa8b-4018-0410-8976-d6e080ef94d8>2007-04-18 08:45:42 +0000
committershnavid <shnavid@ef72aa8b-4018-0410-8976-d6e080ef94d8>2007-04-18 08:45:42 +0000
commite08b794fa844a91f84519a3c587bb2db0e2f99cc (patch)
treee69a394d88cb87ce2521623d96bbc8f92da294f4 /src/lib
parent4ce85936811a5b7296f6e28f562c1624fb73b116 (diff)
downloadsos-e08b794fa844a91f84519a3c587bb2db0e2f99cc.tar.gz
Fixed typo in new logging.
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@120 ef72aa8b-4018-0410-8976-d6e080ef94d8
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/sos/plugintools.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/sos/plugintools.py b/src/lib/sos/plugintools.py
index 116f861e..f0347ca8 100644
--- a/src/lib/sos/plugintools.py
+++ b/src/lib/sos/plugintools.py
@@ -272,7 +272,7 @@ class PluginBase:
"""
# First check to make sure the binary exists and is runnable.
if not os.access(prog.split()[0], os.X_OK):
- self.cInfo['soslog'].verbose2("Binary '%s' does not exist or is not runnable" % prog.split()[0])
+ self.cInfo['soslog'](logging.VERBOSE2, "Binary '%s' does not exist or is not runnable" % prog.split()[0])
return
# pylint: disable-msg = W0612
@@ -298,7 +298,7 @@ class PluginBase:
"""
# First check to make sure the binary exists and is runnable.
if not os.access(exe.split()[0], os.X_OK):
- self.cInfo['soslog'].verbose2("Binary '%s' does not exist or is not runnable" % exe.split()[0])
+ self.cInfo['soslog'](logging.VERBOSE2, "Binary '%s' does not exist or is not runnable" % exe.split()[0])
return
# pylint: disable-msg = W0612
@@ -369,7 +369,7 @@ class PluginBase:
except KeyboardInterrupt:
raise KeyboardInterrupt
except Exception, e:
- self.cInfo['soslog'].verbose("Error copying from pathspec %s (%s)" % (path,e))
+ self.cInfo['soslog'](logging.VERBOSE, "Error copying from pathspec %s (%s)" % (path,e))
for prog in self.collectProgs:
self.cInfo['soslog'].debug("collecting output of '%s'" % prog)
try:
@@ -379,7 +379,7 @@ class PluginBase:
except KeyboardInterrupt:
raise KeyboardInterrupt
except:
- self.cInfo['soslog'].verbose("Error collecting output of '%s'" % prog,)
+ self.cInfo['soslog'](logging.VERBOSE, "Error collecting output of '%s'" % prog,)
def checkenabled(self):
""" This function can be overidden to let the plugin decide whether