diff --git a/CHANGES b/CHANGES index c49ee28b8..428df86c3 100644 --- a/CHANGES +++ b/CHANGES @@ -96,6 +96,7 @@ Bugs fixed footnote reference * #4304: linkcheck: Fix race condition that could lead to checking the availability of the same URL twice +* #8791: linkcheck: The docname for each hyperlink is not displayed * #7118: sphinx-quickstart: questionare got Mojibake if libreadline unavailable * #8094: texinfo: image files on the different directory with document are not copied diff --git a/sphinx/builders/linkcheck.py b/sphinx/builders/linkcheck.py index f3b6e8c4a..c61ba5cfc 100644 --- a/sphinx/builders/linkcheck.py +++ b/sphinx/builders/linkcheck.py @@ -390,7 +390,7 @@ class CheckExternalLinksBuilder(DummyBuilder): self.write_linkstat(linkstat) return if lineno: - logger.info('(line %4d) ', lineno, nonl=True) + logger.info('(%16s: line %4d) ', docname, lineno, nonl=True) if status == 'ignored': if info: logger.info(darkgray('-ignored- ') + uri + ': ' + info)