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

pull/11901/head
Matt Westcott 2024-04-27 13:37:03 +01:00 zatwierdzone przez GitHub
rodzic bfdd13f8a8
commit 7c6187f06c
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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, [])

Wyświetl plik

@ -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():