diff --git a/wagtail/contrib/frontend_cache/tests.py b/wagtail/contrib/frontend_cache/tests.py index c5e74f1be5..cebacf7bd3 100644 --- a/wagtail/contrib/frontend_cache/tests.py +++ b/wagtail/contrib/frontend_cache/tests.py @@ -485,7 +485,7 @@ class TestCachePurgingFunctions(TestCase): } ) 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, []) diff --git a/wagtail/contrib/frontend_cache/utils.py b/wagtail/contrib/frontend_cache/utils.py index 944673dced..85c18fcba0 100644 --- a/wagtail/contrib/frontend_cache/utils.py +++ b/wagtail/contrib/frontend_cache/utils.py @@ -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():