Skip to content

Commit

Permalink
Merge pull request #346 from devinit/fix/logging
Browse files Browse the repository at this point in the history
Disable allowed host logging
  • Loading branch information
akmiller01 committed Oct 1, 2020
2 parents 4048971 + c2d2efa commit 30a3e0a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions ddw_analyst_ui/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,23 @@
EMAIL_HOST_USER = '[email protected]'
EMAIL_HOST_PASSWORD = os.environ.get('EMAIL_HOST_PASSWORD', '')

# Disable allowed host emails to admin
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'handlers': {
'null': {
'class': 'logging.NullHandler',
},
},
'loggers': {
'django.security.DisallowedHost': {
'handlers': ['null'],
'propagate': False,
},
},
}

try:
from ddw_analyst_ui.local_settings import DATABASES, SECRET_KEY
except ImportError:
Expand Down

0 comments on commit 30a3e0a

Please sign in to comment.