diff --git a/src/mkdocs_autorefs/references.py b/src/mkdocs_autorefs/references.py index f2f7425..8eca5f0 100644 --- a/src/mkdocs_autorefs/references.py +++ b/src/mkdocs_autorefs/references.py @@ -391,6 +391,7 @@ def inner(match: Match) -> str: url = _find_url(identifiers, url_mapper) except KeyError: if optional: + log.debug("Unresolved optional cross-reference: %s", identifier) if hover: return f'{title}' return title