Skip to content

Commit

Permalink
Merge pull request #3425 from mart-e/replacement-indicator-log-full
Browse files Browse the repository at this point in the history
  • Loading branch information
justinmayer authored Nov 27, 2024
2 parents 882cd16 + 31538d1 commit ac28ddb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pelican/contents.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,8 +358,9 @@ def _find_path(path: str) -> Optional[Content]:
origin = joiner(siteurl, Author(path, self.settings).url)
else:
logger.warning(
"Replacement Indicator '%s' not recognized, skipping replacement",
"Replacement Indicator %r not recognized in %r, skipping replacement",
what,
origin,
)

# keep all other parts, such as query, fragment, etc.
Expand Down
2 changes: 1 addition & 1 deletion pelican/tests/test_contents.py
Original file line number Diff line number Diff line change
Expand Up @@ -1036,7 +1036,7 @@ def test_unknown_link_syntax(self):
self.assertEqual(content, html)
self.assertLogCountEqual(
count=1,
msg="Replacement Indicator 'unknown' not recognized, "
msg="Replacement Indicator 'unknown' not recognized in '{unknown}foo', "
"skipping replacement",
level=logging.WARNING,
)
Expand Down

0 comments on commit ac28ddb

Please sign in to comment.