From c144e06bcdf9bc6b04f8627cf8caa19fc05ceac3 Mon Sep 17 00:00:00 2001 From: "xusydoc@chromium.org" Date: Fri, 3 May 2013 23:23:53 +0000 Subject: [PATCH] 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 --- gclient_utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gclient_utils.py b/gclient_utils.py index d0fa201b2..54d4e0ecf 100644 --- a/gclient_utils.py +++ b/gclient_utils.py @@ -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()