Skip to content

Commit 649831e

Browse files
committed
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
1 parent ed8e578 commit 649831e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

ietf/settings.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,10 @@ def skip_unreadable_post(record):
232232
'level': 'INFO',
233233
'propagate': False,
234234
},
235+
'django.security': {
236+
'handlers': ['syslog', ],
237+
'level': 'INFO',
238+
},
235239
'oidc_provider': {
236240
'handlers': ['syslog', 'console', ],
237241
'level': 'DEBUG',

0 commit comments

Comments
 (0)