misc: disable django.security.DisallowedRedirect logs (#33620)

This commit is contained in:
Lauréline Guérin 2020-05-05 15:50:00 +02:00
parent 5370064071
commit 35f66b3f48
No known key found for this signature in database
GPG Key ID: 1FAB9B9B4F93D473
1 changed files with 7 additions and 0 deletions

View File

@ -91,6 +91,9 @@ LOGGING = {
'class': 'hobo.multitenant.log.AdminEmailHandler',
'include_html': True,
},
'null': {
'class': 'logging.NullHandler',
},
},
'loggers': {
'django.db': {
@ -123,6 +126,10 @@ LOGGING = {
'level': 'NOTSET',
'propagate': True,
},
'django.security.DisallowedRedirect': {
'handlers': ['null'],
'propagate': False,
},
'django.template': {
# too much logs on DEBUG level
'handlers': [],