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

Unified Diff: tools/telemetry/third_party/gsutilz/gslib/commands/stat.py

Issue 1376593003: Roll gsutil version to 4.15. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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: tools/telemetry/third_party/gsutilz/gslib/commands/stat.py
diff --git a/tools/telemetry/third_party/gsutilz/gslib/commands/stat.py b/tools/telemetry/third_party/gsutilz/gslib/commands/stat.py
index 499e9af8eef18e25240ccae282fa712f3486baf8..4d215f77f79a7c552499aa2aebe69359106e2182 100644
--- a/tools/telemetry/third_party/gsutilz/gslib/commands/stat.py
+++ b/tools/telemetry/third_party/gsutilz/gslib/commands/stat.py
@@ -17,6 +17,7 @@
from __future__ import absolute_import
import logging
+import sys
from gslib.bucket_listing_ref import BucketListingObject
from gslib.cloud_api import AccessDeniedException
@@ -138,14 +139,14 @@ class StatCommand(Command):
if logging.getLogger().isEnabledFor(logging.INFO):
PrintFullInfoAboutObject(blr, incl_acl=False)
except AccessDeniedException:
- logging.info('You aren\'t authorized to read %s - skipping', url_str)
+ sys.stderr.write('You aren\'t authorized to read %s - skipping' %
+ url_str)
except InvalidUrlError:
raise
except NotFoundException:
pass
if not arg_matches:
- if logging.getLogger().isEnabledFor(logging.INFO):
- logging.info('No URLs matched %s', url_str)
+ sys.stderr.write('No URLs matched %s' % url_str)
found_nonmatching_arg = True
if found_nonmatching_arg:
return 1

Powered by Google App Engine
This is Rietveld 408576698