Mailman: handle Django security logs like request logs
This commit is contained in:
parent
76a6106b80
commit
b856d30a95
1 changed files with 9 additions and 1 deletions
|
@ -353,7 +353,15 @@ LOGGING = {
|
|||
{% endif %}
|
||||
],
|
||||
'level': 'DEBUG',
|
||||
'propagate': True,
|
||||
},
|
||||
'django.security': {
|
||||
'handlers': [
|
||||
'file',
|
||||
{% if env == 'production' %}
|
||||
'mail_admins',
|
||||
{% endif %}
|
||||
],
|
||||
'level': 'DEBUG',
|
||||
},
|
||||
},
|
||||
'formatters': {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue