-
Notifications
You must be signed in to change notification settings - Fork 57
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 ExceptionReporter #100
Comments
Just to confirm, an |
@lamby Yes, so here: django-slack/django_slack/log.py Line 52 in 9da57a8
So like a setting SLACK_EXCEPTION_REPORTER or something where you can reference your own if you want to (like my CustomExceptionReporter above). My aim is to filter out unnecessary sensitive data like request metadata etc when an exception occurs and posting to slack. Or maybe there is a better way? |
Not sure why you would need a |
As of Django 3.1 it is possible to override which exception report to use: https://docs.djangoproject.com/en/4.1/releases/3.1/#error-reporting Relevant issue: lamby#100
As of Django 3.1 it is possible to override which exception report to use: https://docs.djangoproject.com/en/4.1/releases/3.1/#error-reporting Relevant issue: #100
Thanks for a great library.
It would be great if one could provide a custom ExceptionReporter. For example, I do not want to send data like settings and request_meta when exceptions happens. Right now I do:
and then override all of SlackExceptionHandler emit method just to change the ExceptionReporter class.
EDIT (lamby): Adding Markdown
The text was updated successfully, but these errors were encountered: