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

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/common/system/executive.py

Issue 2188623002: Change logging statements to not use the "%" operator. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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: third_party/WebKit/Tools/Scripts/webkitpy/common/system/executive.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/common/system/executive.py b/third_party/WebKit/Tools/Scripts/webkitpy/common/system/executive.py
index a8100ece63636df727176995266f4f0335f5ceba..eb63764b530cdf3d819d3a817b26b7bcd2b62c15 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/common/system/executive.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/common/system/executive.py
@@ -148,7 +148,7 @@ class Executive(object):
except OSError as e:
if e.errno == errno.EAGAIN:
if retries_left <= 0:
- _log.warn("Failed to kill pid %s. Too many EAGAIN errors." % pid)
+ _log.warning("Failed to kill pid %s. Too many EAGAIN errors.", pid)
continue
if e.errno == errno.ESRCH: # The process does not exist.
return
@@ -377,7 +377,7 @@ class Executive(object):
exit_code = process.wait()
if debug_logging:
- _log.debug('"%s" took %.2fs' % (self.command_for_printing(args), time.time() - start_time))
+ _log.debug('"%s" took %.2fs', self.command_for_printing(args), time.time() - start_time)
if return_exit_code:
return exit_code

Powered by Google App Engine
This is Rietveld 408576698