Browse Source

Dalsi upravy loggeru ...

remotes/origin/Galerie
Tomas Gavenciak 9 years ago
parent
commit
d646c88c0c
  1. 8
      mamweb/settings_common.py
  2. 1
      mamweb/settings_prod.py
  3. 1
      mamweb/settings_test.py

8
mamweb/settings_common.py

@ -190,7 +190,7 @@ except:
LOGGING = { LOGGING = {
'version': 1, 'version': 1,
'disable_existing_loggers': True, 'disable_existing_loggers': False,
'formatters': { 'formatters': {
'verbose': { 'verbose': {
@ -199,6 +199,12 @@ LOGGING = {
}, },
'loggers': { 'loggers': {
'django': {
'handlers': ['console'],
'level': 'DEBUG',
},
# Catch-all logger # Catch-all logger
'': { '': {
'handlers': ['console'], # Add 'mail_admins' in prod and test 'handlers': ['console'], # Add 'mail_admins' in prod and test

1
mamweb/settings_prod.py

@ -63,5 +63,6 @@ CSRF_COOKIE_SECURE = True
# LOGGING # LOGGING
LOGGING['loggers']['']['handlers'] = ['console', 'mail_admins'] LOGGING['loggers']['']['handlers'] = ['console', 'mail_admins']
LOGGING['loggers']['django']['handlers'] = ['console', 'mail_admins']

1
mamweb/settings_test.py

@ -61,6 +61,7 @@ CSRF_COOKIE_SECURE = True
# LOGGING # LOGGING
LOGGING['loggers']['']['handlers'] = ['console', 'mail_admins'] LOGGING['loggers']['']['handlers'] = ['console', 'mail_admins']
LOGGING['loggers']['django']['handlers'] = ['console', 'mail_admins']

Loading…
Cancel
Save