node: Log Panics
It’s desired to log the backtrace in case of a panic. Add a custom panic handler which then logs the backtrace.
It’s desired to log the backtrace in case of a panic. Add a custom panic handler which then logs the backtrace.
Why not using the human-panic crate, which is maintained, and which can also
include backtraces.
Not sure whether the output looks similar to log-panics, because there’s no
example for that one shown on the github page.
If wanted, I can contribute a patch for that one.
There hasn’t been any reaction in 19 days, even though the author’s GitHub account seems to be active. That’s a bad sign. I’ll move this patch back to draft.
Do not use log-panics, but backtrace directly.
Rebase
REVIEW
Changes:
- Rebase
- Squash review