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

How to prevent jsonapi-resources from logging backtraces. #798

Open
senny opened this issue Aug 11, 2016 · 1 comment
Open

How to prevent jsonapi-resources from logging backtraces. #798

senny opened this issue Aug 11, 2016 · 1 comment

Comments

@senny
Copy link

senny commented Aug 11, 2016

Both here and here jsonapi-resources logs the complete backtrace of exceptions. We are using structured logging and don't want to have these backtraces in our logs. We are sending them to an error catcher service (like Airbrake or Honeybadger).

During a production incident with a lot of errors these backtraces flooded everything. It would be nice to completely replace the logging with a custom implementation.

Along the same lines it, it would be convenient to define that error handling in a single place. Currently you need to overwrite both handle_exceptions and an on_server_error callback. See #780

@lgebhardt
Copy link
Member

@senny Agreed, we should revisit this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants