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

Unified Diff: tools/telemetry/telemetry/core/forwarders/cros_forwarder.py

Issue 180723017: Debugging stmt in cros_forwarder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/core/forwarders/cros_forwarder.py
diff --git a/tools/telemetry/telemetry/core/forwarders/cros_forwarder.py b/tools/telemetry/telemetry/core/forwarders/cros_forwarder.py
index cb8e6a76dfae97b9d59ee0dce288d5c62a9919a3..7c684e69844834d7d2b5f38f13d95e532bd948c0 100644
--- a/tools/telemetry/telemetry/core/forwarders/cros_forwarder.py
+++ b/tools/telemetry/telemetry/core/forwarders/cros_forwarder.py
@@ -42,6 +42,7 @@ class CrOsSshForwarder(forwarders.Forwarder):
self.host_ip,
port_pair.remote_port)
for port_pair in port_pairs if port_pair]
+ logging.debug('Forwarding to localhost:%d', port_pairs[0].local_port)
self._proc = subprocess.Popen(
self._cri.FormSSHCommandLine(['sleep', '999999999'], command_line),
stdout=subprocess.PIPE,
@@ -50,7 +51,7 @@ class CrOsSshForwarder(forwarders.Forwarder):
shell=False)
util.WaitFor(
lambda: self._cri.IsHTTPServerRunningOnPort(self.host_port), 60)
- logging.debug('Server started on %s:%d' % (self.host_ip, self.host_port))
+ logging.debug('Server started on %s:%d', self.host_ip, self.host_port)
@property
def host_port(self):
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698