Skip to content

Commit

Permalink
Merge pull request #330 from knatten/http-hosts
Browse files Browse the repository at this point in the history
Stop spamming about invalid http hosts
  • Loading branch information
knatten authored Apr 5, 2024
2 parents a84256c + c0a997f commit 1dde1ed
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cppquiz/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,15 @@
'filename': here('quiz.log'),
'formatter': 'simple_stamped',
},
'null': {
'class': 'logging.NullHandler',
},
},
'loggers': {
'django.security.DisallowedHost': {
'handlers': ['null'],
'propagate': False,
},
'django.request': {
'handlers': ['mail_admins'],
'level': 'ERROR',
Expand Down

0 comments on commit 1dde1ed

Please sign in to comment.