Added a default logger and level for 'django.security' log items, to route them to our regular syslog. This will give us more information about failures to retrieve session info, and also things like 404 responses, which will already be captured in the apache log but with less info. May need revisiting if it proves to cause excessive logging.

- Legacy-Id: 18042
This commit is contained in:
Henrik Levkowetz 2020-06-23 20:47:58 +00:00
parent ed8e578a07
commit 649831e7c7

View file

@ -232,6 +232,10 @@ LOGGING = {
'level': 'INFO',
'propagate': False,
},
'django.security': {
'handlers': ['syslog', ],
'level': 'INFO',
},
'oidc_provider': {
'handlers': ['syslog', 'console', ],
'level': 'DEBUG',