Write retry text to stderr so stdout is clean for real output from gsutil.
Review URL: https://chromiumcodereview.appspot.com/10358004
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/command_wrapper/bin@135178 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/command_wrapper.py b/command_wrapper.py
index 91f9b6e..714dc45 100755
--- a/command_wrapper.py
+++ b/command_wrapper.py
@@ -149,9 +149,9 @@
return p.returncode
if p.returncode == 0:
return 0
- print 'Command %s failed with retcode %d, try %d.' % (
+ print >> sys.stderr, 'Command %s failed with retcode %d, try %d.' % (
' '.join(args), p.returncode, r + 1)
- print 'Command %s failed %d retries, giving up.' % (
+ print >> sys.stderr, 'Command %s failed %d retries, giving up.' % (
' '.join(args), options.retries)
return p.returncode