Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom error reporter or filter #422

Open
sevdog opened this issue Mar 21, 2024 · 0 comments
Open

Custom error reporter or filter #422

sevdog opened this issue Mar 21, 2024 · 0 comments

Comments

@sevdog
Copy link

sevdog commented Mar 21, 2024

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:

  • a custom error reporter to be used as DEFAULT_EXCEPTION_REPORTER or as request.exception_reporter_class to provide more useful information to those which have configured this report
  • a custom log Filter to be used by those which do not want to be advised by health checks when using a logger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant