Dalsi upravy loggeru ...
This commit is contained in:
parent
e0430aad7c
commit
d646c88c0c
3 changed files with 9 additions and 1 deletions
|
@ -190,7 +190,7 @@ except:
|
|||
|
||||
LOGGING = {
|
||||
'version': 1,
|
||||
'disable_existing_loggers': True,
|
||||
'disable_existing_loggers': False,
|
||||
|
||||
'formatters': {
|
||||
'verbose': {
|
||||
|
@ -199,6 +199,12 @@ LOGGING = {
|
|||
},
|
||||
|
||||
'loggers': {
|
||||
|
||||
'django': {
|
||||
'handlers': ['console'],
|
||||
'level': 'DEBUG',
|
||||
},
|
||||
|
||||
# Catch-all logger
|
||||
'': {
|
||||
'handlers': ['console'], # Add 'mail_admins' in prod and test
|
||||
|
|
|
@ -63,5 +63,6 @@ CSRF_COOKIE_SECURE = True
|
|||
# LOGGING
|
||||
|
||||
LOGGING['loggers']['']['handlers'] = ['console', 'mail_admins']
|
||||
LOGGING['loggers']['django']['handlers'] = ['console', 'mail_admins']
|
||||
|
||||
|
||||
|
|
|
@ -61,6 +61,7 @@ CSRF_COOKIE_SECURE = True
|
|||
# LOGGING
|
||||
|
||||
LOGGING['loggers']['']['handlers'] = ['console', 'mail_admins']
|
||||
LOGGING['loggers']['django']['handlers'] = ['console', 'mail_admins']
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue