Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
Ignore DisallowedHosts logs from Sentry (#842)
sarayourfriend35fa6eb5722b
diff --git a/api/catalog/settings.py b/api/catalog/settings.pyindex 72edb602a..3af838aca 100644--- a/api/catalog/settings.py+++ b/api/catalog/settings.py@@ -16,6 +16,7 @@ from socket import gethostbyname, gethostnameimport sentry_sdkfrom decouple import configfrom sentry_sdk.integrations.django import DjangoIntegration+from sentry_sdk.integrations.logging import ignore_loggerfrom catalog.configuration.aws import AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEYfrom catalog.configuration.elasticsearch import ES, MEDIA_INDEX_MAPPING@@ -350,3 +351,9 @@ if not DEBUG:send_default_pii=False,environment=ENVIRONMENT,)++ # ALLOW_HOSTS is correctly configured so ignore this to prevent+ # spammy bots like https://github.com/robertdavidgraham/masscan+ # from pushing un-actionable alerts to Sentry like+ # https://sentry.io/share/issue/9af3cdf8ef74420aa7bbb6697760a82c/+ ignore_logger("django.security.DisallowedHost")