Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
Silence disallowed host errors (to avoid unnecessary Sentry notificat…
Browse files Browse the repository at this point in the history
…ions)
  • Loading branch information
jpmckinney committed Apr 23, 2020
1 parent ab77a91 commit aaa0f86
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions ocdstoucan/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,22 @@
('es', _('Spanish')),
]

LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'handlers': {
'null': {
'class': 'logging.NullHandler',
},
},
'loggers': {
'django.security.DisallowedHost': {
'handlers': ['null'],
'propagate': False,
},
},
}

OCDS_TOUCAN_MAXNUMFILES = os.getenv('OCDS_TOUCAN_MAXNUMFILES', 20)
OCDS_TOUCAN_MAXFILESIZE = os.getenv('OCDS_TOUCAN_MAXFILESIZE', 10000000) # in bytes

Expand Down

0 comments on commit aaa0f86

Please sign in to comment.