Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Downgrade 'Unable to find purge backend' messages to info #11899

Merged
merged 1 commit into from
Apr 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion wagtail/contrib/frontend_cache/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ def test_purge_batch(self):
}
)
def test_invalidate_specific_location(self):
with self.assertLogs(level="WARNING") as log_output:
with self.assertLogs(level="INFO") as log_output:
purge_url_from_cache("http://localhost/foo")

self.assertEqual(PURGED_URLS, [])
Expand Down
2 changes: 1 addition & 1 deletion wagtail/contrib/frontend_cache/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def purge_urls_from_cache(urls, backend_settings=None, backends=None):
}

if not backends_for_hostname:
logger.warning("Unable to find purge backend for %s", hostname)
logger.info("Unable to find purge backend for %s", hostname)
continue

for backend_name, backend in backends_for_hostname.items():
Expand Down