settings: Disable DisallowedHost error emails by default.

These error messages are pretty spammy because most servers on the
public Internet receive some amount of HTTP(S) scanning traffic.

We still log them, just don't email the administrators.
This commit is contained in:
Tim Abbott
2016-08-18 16:57:05 -07:00
parent 7950d3181e
commit b5d85fe5f1

View File

@@ -937,6 +937,10 @@ LOGGING = {
'level': 'WARNING',
'propagate': False,
},
'django.security.DisallowedHost': {
'handlers': ['file'],
'propagate': False,
},
## Uncomment the following to get all database queries logged to the console
# 'django.db': {
# 'handlers': ['console'],