diff --git a/papyri/gen.py b/papyri/gen.py index e411bc12..2df164d9 100644 --- a/papyri/gen.py +++ b/papyri/gen.py @@ -606,6 +606,7 @@ def __init__(self, root: ModuleType, others: List[ModuleType]): self._open_list = [(root, [root.__name__])] for o in others: self._open_list.append((o, o.__name__.split("."))) + self.log = logging.getLogger("papyri") def scan(self) -> None: """ @@ -697,7 +698,7 @@ def visit_ModuleType(self, mod, stack): for k in dir(mod): # TODO: scipy 1.8 workaround, remove. if not hasattr(mod, k): - print_(f"scipy 1.8 workaround : ({mod.__name__!r},{k!r}),") + self.log.warning(f"Name not found in module: {mod.__name__}.{k}") continue self._open_list.append((getattr(mod, k), stack + [k]))