mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Merge pull request #3425 from mart-e/replacement-indicator-log-full
This commit is contained in:
commit
ac28ddb9bf
2 changed files with 3 additions and 2 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue