Save error logs
Bug #645229 reported by
Stas Shtin
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
WikiPBX |
New
|
Undecided
|
Dreamtime |
Bug Description
Since we tell the user on error 500 page that his error has been reported, it makes sense to actually reporti it :-)
This can be done by adding an error handling view as described in http://
Also, we should probably clean ServerLogs older than a configurable amout of days (something like 2 weeks by default) in admin's server logs list page.
Changed in wikipbx: | |
assignee: | nobody → Dreamtime (dmm) |
To post a comment you must log in.
Such errors being reported via email when we uncomment ADMIN in settings.py:
ADMINS = (
# ('Your Name', '<email address hidden>'),
)
I'm not sure that logging to DB will work in this case, course who knows what kind of error happened -
may be DB server went down, or we have syntax error in our scripts.
As for limiting amount of logs, thats a good feature. I'll get back to it later.
Also I saw your addition of translation for 500 page in ~wikipbx- dev/wikipbx/ trunk : 191. www.djangobook. com/en/ 2.0/chapter12/
According Django docs they recommend this page to be as light as possible:
http://
May be we should avoid translation in this case?