Radish alpha
h
rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5
Radicle Heartwood Protocol & Stack
Radicle
Git
Improve radicle-node panics
Merged fintohaps opened 9 months ago

To better help debugging when things go wrong after radicle-node crashes, RUST_BACKTRACE is registered in the main. According to this StackOverflow answer, this should not affect performance

Registers a panic handler to provide nicer information when the radicle-node panics. This partly inspired by a suggestion from a contributor and provided a link to their approach1.

1

https://github.com/pragma-org/amaru/blob/41ba1c26f82c813dfd052f9bc2adeb55dcd5957c/crates/amaru/src/bin/amaru/panic.rs#L17

fintohaps opened with revision 0776b127 on base fdb1ac4e +20 -0 9 months ago

To better help debugging when things go wrong after radicle-node crashes, RUST_BACKTRACE is registered in the main. According to this StackOverflow answer, this should not affect performance

Registers a panic handler to provide nicer information when the radicle-node panics. This partly inspired by a suggestion from a contributor and provided a link to their approach1.

1

https://github.com/pragma-org/amaru/blob/41ba1c26f82c813dfd052f9bc2adeb55dcd5957c/crates/amaru/src/bin/amaru/panic.rs#L17

fintohaps pushed revision 2 fb728567 on base fdb1ac4e +31 -0 9 months ago

Changes:

  • Only set RUST_BACKTRACE if it has not been set by the environment already
  • Document panic handler
did:key:z6MkgFq6...nBGz pushed revision 3 ce9b34bf on base fdb1ac4e +69 -1 9 months ago

Remove the custom panic handler and use log-panics crate in the logger module instead.

did:key:z6MkgFq6...nBGz pushed revision 4 e8bf7df1 on base fdb1ac4e +70 -6 9 months ago

Remove unnecessary error printing.

did:key:z6MkgFq6...nBGz pushed revision 5 71fa19bc on base fdb1ac4e +9 -5 9 months ago

Remove panic handler

fintohaps pushed revision 6 56391217 on base 0aaa81f8 +9 -5 9 months ago

Rebased

fintohaps merged revision 56391217 at 54fd8c40 9 months ago