Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(209)

Unified Diff: client/tools/parallel_execution.py

Issue 1233303003: Migrate and merge logging_utils from swarming_bot into client/utils. (Closed) Base URL: git@github.com:luci/luci-py.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: client/tools/parallel_execution.py
diff --git a/client/tools/parallel_execution.py b/client/tools/parallel_execution.py
index 3ada588f4447e173ae5d99bb14c1fd9a3de94622..ad2773fe39d68b6b28766c1995c2a7871fbbf117 100644
--- a/client/tools/parallel_execution.py
+++ b/client/tools/parallel_execution.py
@@ -19,6 +19,7 @@ sys.path.insert(0, ROOT_DIR)
import auth
import isolateserver
+from utils import logging_utils
from utils import threading_utils
from utils import tools
@@ -151,9 +152,9 @@ def run_swarming_tasks_parallel(
print(' %s' % task)
-class OptionParser(tools.OptionParserWithLogging):
+class OptionParser(logging_utils.OptionParserWithLogging):
def __init__(self, **kwargs):
- tools.OptionParserWithLogging.__init__(self, **kwargs)
+ logging_utils.OptionParserWithLogging.__init__(self, **kwargs)
self.server_group = tools.optparse.OptionGroup(self, 'Server')
self.server_group.add_option(
'-S', '--swarming',
@@ -177,7 +178,7 @@ class OptionParser(tools.OptionParserWithLogging):
'this task request expires.')
def parse_args(self, *args, **kwargs):
- options, args = tools.OptionParserWithLogging.parse_args(
+ options, args = logging_utils.OptionParserWithLogging.parse_args(
self, *args, **kwargs)
options.swarming = options.swarming.rstrip('/')
if not options.swarming:

Powered by Google App Engine
This is Rietveld 408576698