Disable logging of unknown hosts

This commit is contained in:
Raphael Michel
2019-02-20 16:44:00 +01:00
parent 3f7348717b
commit 58b688628e

View File

@@ -551,7 +551,10 @@ LOGGING = {
'level': 'ERROR',
'class': 'django.utils.log.AdminEmailHandler',
'filters': ['require_admin_enabled']
}
},
'null': {
'class': 'logging.NullHandler',
},
},
'loggers': {
'': {
@@ -574,6 +577,10 @@ LOGGING = {
'level': loglevel,
'propagate': True,
},
'django.security.DisallowedHost': {
'handlers': ['null'],
'propagate': False,
},
'django.db.backends': {
'handlers': ['file', 'console'],
'level': 'INFO', # Do not output all the queries