londiste.playback: support multiple -v options for workers
authormartinko <gamato@users.sf.net>
Fri, 17 May 2013 13:10:31 +0000 (15:10 +0200)
committermartinko <gamato@users.sf.net>
Fri, 17 May 2013 13:10:31 +0000 (15:10 +0200)
python/londiste/playback.py

index 1c60c97b18b184f777d042ec3c19264d2f4377ee..c262de536261ecf642ea3fbe02819108f3f665e0 100644 (file)
@@ -874,7 +874,7 @@ class Replicator(CascadedWorker):
         return None
 
     def launch_copy(self, tbl_stat):
-        """Run paraller worker for copy."""
+        """Run parallel worker for copy."""
         self.log.info("Launching copy process")
         script = sys.argv[0]
         conf = self.cf.filename
@@ -883,8 +883,7 @@ class Replicator(CascadedWorker):
         # pass same verbosity options as main script got
         if self.options.quiet:
             cmd.append('-q')
-        if self.options.verbose:
-            cmd.append('-v')
+        cmd += self.options.verbose * ['-v']
 
         # let existing copy finish and clean its pidfile,
         # otherwise new copy will exit immediately.