Use logger formatting instead of string interpolation.
Follow-up to ilevy's comments in https://chromiumcodereview.appspot.com/14759006/
Review URL: https://chromiumcodereview.appspot.com/14874005
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@198236 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/gclient_utils.py b/gclient_utils.py
index d0fa201..54d4e0e 100644
--- a/gclient_utils.py
+++ b/gclient_utils.py
@@ -745,17 +745,17 @@
try:
self.item.run(*self.args, **self.kwargs)
except KeyboardInterrupt:
- logging.info('Caught KeyboardInterrupt in thread %s' % self.item.name)
+ logging.info('Caught KeyboardInterrupt in thread %s', self.item.name)
logging.info(str(sys.exc_info()))
work_queue.exceptions.put(sys.exc_info())
raise
except Exception:
# Catch exception location.
- logging.info('Caught exception in thread %s' % self.item.name)
+ logging.info('Caught exception in thread %s', self.item.name)
logging.info(str(sys.exc_info()))
work_queue.exceptions.put(sys.exc_info())
finally:
- logging.info('_Worker.run(%s) done' % self.item.name)
+ logging.info('_Worker.run(%s) done', self.item.name)
work_queue.ready_cond.acquire()
try:
work_queue.ready_cond.notifyAll()