Skip to content

Commit

Permalink
Downgrade 'Unable to find purge backend' messages to info (#11899)
Browse files Browse the repository at this point in the history
  • Loading branch information
gasman committed Apr 27, 2024
1 parent bfdd13f commit 7c6187f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion wagtail/contrib/frontend_cache/tests.py
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
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

0 comments on commit 7c6187f

Please sign in to comment.