Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
roomlist
Commits
bdd01530
Commit
bdd01530
authored
Dec 12, 2015
by
Daniel W Bond
Browse files
include error traceback attachement in admin error emails
parent
5cd8516f
Changes
1
Hide whitespace changes
Inline
Side-by-side
roomlist/settings/settings.py
View file @
bdd01530
...
@@ -206,6 +206,7 @@ else:
...
@@ -206,6 +206,7 @@ else:
CACHES
=
{
CACHES
=
{
'default'
:
{
'default'
:
{
'BACKEND'
:
'redis_cache.RedisCache'
,
'BACKEND'
:
'redis_cache.RedisCache'
,
# configure to redis port
'LOCATION'
:
'/var/run/redis/redis.sock'
,
'LOCATION'
:
'/var/run/redis/redis.sock'
,
},
},
}
}
...
@@ -232,12 +233,20 @@ if not DEBUG:
...
@@ -232,12 +233,20 @@ if not DEBUG:
'disable_existing_loggers'
:
False
,
'disable_existing_loggers'
:
False
,
'handlers'
:
{
'handlers'
:
{
'file'
:
{
'file'
:
{
'level'
:
'DEBUG'
,
'level'
:
'DEBUG'
,
# will log all errors
'class'
:
'logging.FileHandler'
,
'class'
:
'logging.FileHandler'
,
# make sure to change this to the proper path, and one that
# make sure to change this to the proper path, and one that
# can be written to
# can be written to
'filename'
:
'/path/to/django/debug.log'
,
'filename'
:
'/path/to/django/debug.log'
,
},
},
# 'mail_admins' by default does not include a traceback attachment
# setting 'include_html' to True will attach an html traceback file to the email
# you can also set an addtional 'email_backend' arg to a custom email handler (e.g. SES)
'mail_admins'
:
{
'level'
:
'ERROR'
,
'class'
:
'django.util.log.AdminEmailHandler'
,
'include_html'
:
True
,
},
},
},
# logs request errors
# logs request errors
'loggers'
:
{
'loggers'
:
{
...
@@ -246,5 +255,7 @@ if not DEBUG:
...
@@ -246,5 +255,7 @@ if not DEBUG:
'level'
:
'DEBUG'
,
'level'
:
'DEBUG'
,
'propagate'
:
True
,
'propagate'
:
True
,
},
},
# django's default loggers send request and security messages at the ERROR
# or CRITICAL level to the AdminEmailHandler via mail_admins
},
},
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment