kaspanet / rusty-kaspa

Kaspa full-node and related libraries in the Rust programming language. This is a Beta version at the final testing phases.
ISC License
350 stars 105 forks source link

Create a panic report with details #465

Open gvbgduh opened 2 weeks ago

gvbgduh commented 2 weeks ago

Is your feature request related to a problem? Please describe. Follow up on https://github.com/kaspanet/rusty-kaspa/pull/446. As logs will be available only after the logging system is initiated, it introduces the gap in logs before such the event. In case of a panic, there will be created a panic report and saved to a file regardless of the logging system status. Additionally, the panic report may contain details to help with the troubleshooting.

Describe the solution you'd like Write to a file a panic report in case of panic, consider including additional context that can help troubleshooting the issues.

Describe alternatives you've considered Options were considered in https://github.com/kaspanet/rusty-kaspa/pull/446.

Additional context N/A