summaryrefslogtreecommitdiff
path: root/src/wheel/wheelfile.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2021-12-26 16:01:23 -0500
committerJason R. Coombs <jaraco@jaraco.com>2021-12-26 16:27:05 -0500
commit2540fef72bc680a0ed92a94d73bf01cdd30044fa (patch)
tree42204f08b1d290e79972419f3235018a92586b74 /src/wheel/wheelfile.py
parent13cc63b105794ad7d014212036a0c1474546c9a4 (diff)
downloadwheel-git-python-logging.tar.gz
Replace bespoke logger with Python logging logger, restoring info/debug/warning levels to logged messages. Fixed missing f-string for 'wheelfile_path'.python-logging
Diffstat (limited to 'src/wheel/wheelfile.py')
-rw-r--r--src/wheel/wheelfile.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wheel/wheelfile.py b/src/wheel/wheelfile.py
index fdf4ac4..41e8382 100644
--- a/src/wheel/wheelfile.py
+++ b/src/wheel/wheelfile.py
@@ -115,7 +115,7 @@ class WheelFile(ZipFile):
return ef
def write_files(self, base_dir):
- log(f"creating '{self.filename}' and adding '{base_dir}' to it")
+ log.info(f"creating '{self.filename}' and adding '{base_dir}' to it")
deferred = []
for root, dirnames, filenames in os.walk(base_dir):
# Sort the directory names so that `os.walk` will walk them in a
@@ -158,7 +158,7 @@ class WheelFile(ZipFile):
if isinstance(zinfo_or_arcname, ZipInfo)
else zinfo_or_arcname
)
- log(f"adding '{fname}'")
+ log.info(f"adding '{fname}'")
if fname != self.record_path:
hash_ = self._default_algorithm(data)
self._file_hashes[fname] = (