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

Chain the existing panic_hook onto Rollbar reporting #20

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

shaunrs
Copy link

@shaunrs shaunrs commented Oct 13, 2022

Currently the macro report_panics! works just fine, but it replaces the default panic hook.

This causes a number of issues:

  1. No feedback on the console once rollbar is enabled, which is the default expected behaviour for panic!
  2. A custom panic_hook that is in place before rollbar is called will no longer be called

This PR fixes that by chaining the original panic hook on the end of rollbar reporting.

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

Successfully merging this pull request may close these issues.

1 participant