Skip to content

Commit

Permalink
silence sentry DisallowedHost errors
Browse files Browse the repository at this point in the history
  • Loading branch information
chris48s committed Nov 13, 2024
1 parent 7dde21c commit 688a0d8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions polling_stations/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,9 @@ def get_ec2_ip():

import sentry_sdk
from sentry_sdk.integrations import django
from sentry_sdk.integrations.logging import ignore_logger

ignore_logger("django.security.DisallowedHost")

sentry_sdk.init(
dsn=os.environ.get("SENTRY_DSN"),
Expand Down

0 comments on commit 688a0d8

Please sign in to comment.