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

Unified Diff: third_party/gsutil/gslib/commands/stat.py

Issue 1380943003: Roll version of gsutil to 4.15. (Closed) Base URL: https://github.com/catapult-project/catapult.git@master
Patch Set: rebase Created 5 years 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 | « third_party/gsutil/gslib/commands/rsync.py ('k') | third_party/gsutil/gslib/commands/version.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/gsutil/gslib/commands/stat.py
diff --git a/third_party/gsutil/gslib/commands/stat.py b/third_party/gsutil/gslib/commands/stat.py
index 499e9af8eef18e25240ccae282fa712f3486baf8..4d215f77f79a7c552499aa2aebe69359106e2182 100644
--- a/third_party/gsutil/gslib/commands/stat.py
+++ b/third_party/gsutil/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
« no previous file with comments | « third_party/gsutil/gslib/commands/rsync.py ('k') | third_party/gsutil/gslib/commands/version.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698