DemocracyLab / DemocracyLab/CivicTechExchange

Log exception info on a single line when DJANGO_DEBUG=False

Open
#589 0 comments 0 reactions 3 assignees Claimed by @qchiujunhao View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.