Merge pull request #3425 from mart-e/replacement-indicator-log-full

This commit is contained in:
Justin Mayer 2024-11-27 20:30:00 +01:00 committed by GitHub
commit ac28ddb9bf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View file

@ -358,8 +358,9 @@ class 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.

View file

@ -1036,7 +1036,7 @@ class TestStatic(LoggedTestCase):
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,
)