From 649831e7c754b3916c03b5a83a631182e312fc30 Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Tue, 23 Jun 2020 20:47:58 +0000 Subject: [PATCH] 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 --- ietf/settings.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ietf/settings.py b/ietf/settings.py index 4972a163a..8c02973fd 100644 --- a/ietf/settings.py +++ b/ietf/settings.py @@ -232,6 +232,10 @@ LOGGING = { 'level': 'INFO', 'propagate': False, }, + 'django.security': { + 'handlers': ['syslog', ], + 'level': 'INFO', + }, 'oidc_provider': { 'handlers': ['syslog', 'console', ], 'level': 'DEBUG',