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

Unified Diff: lib/naclports/binary_package.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: lib/naclports/binary_package.py
diff --git a/lib/naclports/binary_package.py b/lib/naclports/binary_package.py
index 4245d372c0d4e4a48c17965b75c09b4e77493367..b98ef5daa47ea63ab107efb8027e2f6e859dc6dd 100644
--- a/lib/naclports/binary_package.py
+++ b/lib/naclports/binary_package.py
@@ -22,7 +22,7 @@ def InstallFile(filename, old_root, new_root):
"""
oldname = os.path.join(old_root, filename)
- util.Trace('install: %s' % filename)
+ util.LogVerbose('install: %s' % filename)
newname = os.path.join(new_root, filename)
dirname = os.path.dirname(newname)
@@ -139,6 +139,7 @@ class BinaryPackage(package.Package):
raise error.Error('package already installed: %s' % self.InfoString())
self.LogStatus('Installing')
+ util.LogVerbose('installing from: %s' % self.filename)
util.Makedirs(dest_tmp)
names = []
@@ -176,7 +177,7 @@ class BinaryPackage(package.Package):
def WriteStamp(self):
"""Write stamp file containing pkg_info."""
filename = util.GetInstallStamp(self.NAME, self.config)
- util.Trace('stamp: %s' % filename)
+ util.LogVerbose('stamp: %s' % filename)
pkg_info = self.GetPkgInfo()
with open(filename, 'w') as f:
f.write(pkg_info)

Powered by Google App Engine
This is Rietveld 408576698