DemocracyLab / DemocracyLab/CivicTechExchange
Log exception info on a single line when DJANGO_DEBUG=False
Open
Back End
- Dominant language
- JavaScript
- Stars
- 105
- Forks
- 71
- PR merge metrics
- No merged PRs in 30d
Description
When an exception happens on the backend, it prints out the exception stack trace and error message on separate lines. This makes it impossible to get a good log summary in our daily emails. We should print all of the exception information on a single line for production environments (when DJANGO_DEBUG=False).
Possible Solutions:
[Override sys.excepthook](https://stackoverflow.com/a/48643567/6326903)
Contributor guide
Assessment
This issue has not been assessed yet.