From 7252457778a534bb30b3f24c31ced8525c494333 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrik=20H=C3=B6glund?= Date: Fri, 14 Feb 2020 14:14:56 +0100 Subject: [PATCH] Print explicitly to stdout to ensure script actually works. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I think it works, just want to make sure (and I think it's good to print something for the build step). Bug: chromium:1029452 Change-Id: I8df6818a2fb6305b688ae4ae7517159d1ca5b544 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/168602 Reviewed-by: Mirko Bonadei Commit-Queue: Patrik Höglund Cr-Commit-Position: refs/heads/master@{#30528} --- tools_webrtc/perf/webrtc_dashboard_upload.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools_webrtc/perf/webrtc_dashboard_upload.py b/tools_webrtc/perf/webrtc_dashboard_upload.py index 67729d0b25..35784f86d4 100644 --- a/tools_webrtc/perf/webrtc_dashboard_upload.py +++ b/tools_webrtc/perf/webrtc_dashboard_upload.py @@ -79,6 +79,8 @@ def _SendHistogramSet(url, histograms, oauth_token): else: data = zlib.compress(serialized) + print 'Sending %d bytes to %s.' % (len(data), url + '/add_histograms') + http = httplib2.Http() response, content = http.request(url + '/add_histograms', method='POST', body=data, headers=headers) @@ -180,9 +182,10 @@ def main(args): options.dashboard_url, histograms, oauth_token) if response.status == 200: + print 'Received 200 from dashboard.' return 0 else: - print("Upload failed with %d: %s\n\n%s" % (response.status, response.reason, + print('Upload failed with %d: %s\n\n%s' % (response.status, response.reason, content)) return 1