Skip to content

Commit

Permalink
refactor: Log (debug) unresolved aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed Mar 3, 2023
1 parent 50d5417 commit 9164742
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mkdocstrings_handlers/python/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ def collect(self, identifier: str, config: dict) -> CollectorItem: # noqa: D102
unresolved, iterations = loader.resolve_aliases(implicit=False, external=False)
if unresolved:
logger.warning(f"{len(unresolved)} aliases were still unresolved after {iterations} iterations")
logger.debug(f"Unresolved aliases: {', '.join(sorted(unresolved))}")

try:
doc_object = self._modules_collection[identifier]
Expand Down

0 comments on commit 9164742

Please sign in to comment.