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

Unified Diff: build_tools/scan_packages.py

Issue 1012773005: Improve tracing/logging system used in lib/naclports (Closed) Base URL: https://chromium.googlesource.com/external/naclports.git@master
Patch Set: Created 5 years, 9 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: build_tools/scan_packages.py
diff --git a/build_tools/scan_packages.py b/build_tools/scan_packages.py
index 82a91bfb479e94db20487f223578adcf988f88f3..93aca149fc8aaed21770c0fdf1e2496b174069b9 100755
--- a/build_tools/scan_packages.py
+++ b/build_tools/scan_packages.py
@@ -26,7 +26,7 @@ import naclports
import naclports.package
import naclports.package_index
-from naclports import Log, Trace
+from naclports.util import Log, LogVerbose
def FormatSize(num_bytes):
@@ -141,7 +141,7 @@ def main(args):
else:
Log("Searching for packages at: %s" % gs_url)
cmd = ['gsutil', 'ls', '-le', gs_url]
- Trace("Running: %s" % str(cmd))
+ LogVerbose("Running: %s" % str(cmd))
try:
listing = subprocess.check_output(cmd)
except subprocess.CalledProcessError as e:

Powered by Google App Engine
This is Rietveld 408576698