diff options
author | Ronny Pfannschmidt <opensource@ronnypfannschmidt.de> | 2023-03-21 13:47:41 +0100 |
---|---|---|
committer | Ronny Pfannschmidt <opensource@ronnypfannschmidt.de> | 2023-03-29 17:04:12 +0200 |
commit | 8387e01902961ab4af366bd442511d11a6909c3e (patch) | |
tree | c81d4094f8b2f9eb7ed7faeda8cc2548d9a0c6bb /src/setuptools_scm/discover.py | |
parent | f0128253816d5d1783c6c1def4cc8957a34d3436 (diff) | |
download | setuptools-scm-8387e01902961ab4af366bd442511d11a6909c3e.tar.gz |
breaking: replace trace with logging
Diffstat (limited to 'src/setuptools_scm/discover.py')
-rw-r--r-- | src/setuptools_scm/discover.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/setuptools_scm/discover.py b/src/setuptools_scm/discover.py index 2bd01e9..47e08e7 100644 --- a/src/setuptools_scm/discover.py +++ b/src/setuptools_scm/discover.py @@ -4,9 +4,11 @@ import os from typing import Iterable from typing import Iterator +from . import _log from . import _types as _t from ._config import Configuration -from ._trace import trace + +log = _log.log.getChild("discover") def walk_potential_roots( @@ -40,7 +42,7 @@ def match_entrypoint(root: _t.PathT, name: str) -> bool: if os.path.exists(os.path.join(root, name)): if not os.path.isabs(name): return True - trace("ignoring bad ep", name) + log.debug("ignoring bad ep %s", name) return False @@ -56,12 +58,12 @@ def iter_matching_entrypoints( read ``search_parent_directories``, write found parent to ``parent``. """ - trace("looking for ep", entrypoint, root) + log.debug("looking for ep %s in %s", entrypoint, root) from ._entrypoints import iter_entry_points for wd in walk_potential_roots(root, config.search_parent_directories): for ep in iter_entry_points(entrypoint): if match_entrypoint(wd, ep.name): - trace("found ep", ep, "in", wd) + log.debug("found ep %s in %s", ep, wd) config.parent = wd yield ep |