Skip to content

Commit

Permalink
Add chaining documentation (#566)
Browse files Browse the repository at this point in the history
Sentry wasn't working for me because I was calling `std::panic::set_hook()` after `sentry::init()`.   Make it clear that you can have your own hook too, as long as you set it first.
  • Loading branch information
bryanlarsen committed Apr 13, 2023
1 parent 33abdfb commit deb5a84
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sentry-panic/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ might optionally create a sentry `Event` out of a `PanicInfo`.
let integration = sentry_panic::PanicIntegration::default().add_extractor(|info| None);
```

If a panic handler is already configured when `sentry_panic` is initialized, `sentry_panic` will invoke that handler after it uploads the panic event.

## Resources

License: Apache-2.0
Expand Down

0 comments on commit deb5a84

Please sign in to comment.