Skip to content

Commit

Permalink
Updated logging settings
Browse files Browse the repository at this point in the history
  • Loading branch information
mback2k committed Jan 11, 2012
1 parent c32b8bd commit 0fee516
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions basesettings.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,16 +126,25 @@
'version': 1,
'disable_existing_loggers': False,
'handlers': {
'stream': {
'level': 'WARNING',
'class': 'logging.StreamHandler',
},
'mail_admins': {
'level': 'ERROR',
'class': 'django.utils.log.AdminEmailHandler'
}
'class': 'django.utils.log.AdminEmailHandler',
},
},
'loggers': {
'django': {
'handlers': ['stream'],
'level': 'DEBUG',
'propagate': True,
},
'django.request': {
'handlers': ['mail_admins'],
'level': 'ERROR',
'handlers': ['stream', 'mail_admins'],
'level': 'INFO',
'propagate': True,
},
}
},
}

0 comments on commit 0fee516

Please sign in to comment.