From 4204e263be95fda641f41db5242760b28a71b405 Mon Sep 17 00:00:00 2001 From: jwbernin Date: Wed, 9 Aug 2006 19:00:10 +0000 Subject: Adding option to use multithreading for collection - default is single-threaded git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@37 ef72aa8b-4018-0410-8976-d6e080ef94d8 --- src/lib/sos/plugintools.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/lib') diff --git a/src/lib/sos/plugintools.py b/src/lib/sos/plugintools.py index d67f17a4..c09fc801 100644 --- a/src/lib/sos/plugintools.py +++ b/src/lib/sos/plugintools.py @@ -267,14 +267,14 @@ class PluginBase: self.customText = self.customText + text return - def doCollect(self): - self.thread = Thread(target=self.copyStuff,name=self.piName+'-thread') + def doCollect(self, verbosity): + self.thread = Thread(target=self.copyStuff,name=self.piName+'-thread',args=(verbosity,)) self.thread.start() def wait(self): self.thread.join() - def copyStuff(self): + def copyStuff(self, verbosity): for path in self.copyPaths: try: self.doCopyFileOrDir(path) @@ -301,7 +301,7 @@ class PluginBase: """ pass - def analyze(self): + def analyze(self, verbosity): pass def postproc(self, dstroot): -- cgit