mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 18:51:29 +00:00
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
This commit is contained in:
@@ -745,17 +745,17 @@ class ExecutionQueue(object):
|
||||
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()
|
||||
|
||||
Reference in New Issue
Block a user