Skip to content

Commit

Permalink
Merge pull request #2087 from DemocracyClub/sentry-disallowed-host
Browse files Browse the repository at this point in the history
silence sentry DisallowedHost errors
  • Loading branch information
chris48s authored Nov 13, 2024
2 parents 1427a5e + e11e3b9 commit 976d639
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wcivf/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,9 @@ def get_ec2_ip():

import sentry_sdk
from sentry_sdk.integrations import aws_lambda, 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 976d639

Please sign in to comment.