revsys / django-health-check

a pluggable app that runs a full check on the deployment, using a number of plugins to check e.g. database, queue server, celery processes, etc.
https://readthedocs.org/projects/django-health-check/
MIT License
1.22k stars 191 forks source link

Custom error reporter or filter #422

Open sevdog opened 6 months ago

sevdog commented 6 months ago

Using django-health-check in conjunction with AdminEmailHandler log handler for error reports may produce usless report emails.

This is due to the fact that a single failed heath check produces a 500 response which is logged at level ERROR by django and thus getting caught by the handler which is usally used in that way.

It would be nice to have in this library: