Skip to content

Commit a67df1b

Browse files
ignore invalid host header error (#122)
1 parent befad01 commit a67df1b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

messWebsite/settings.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,9 @@
242242
if not DEBUG:
243243
import sentry_sdk
244244
from sentry_sdk.integrations.django import DjangoIntegration
245+
from sentry_sdk.integrations.logging import ignore_logger
246+
247+
ignore_logger("django.security.DisallowedHost")
245248

246249
sentry_sdk.init(
247250
dsn=env("SENTRY_DSN"),

0 commit comments

Comments
 (0)