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

Add a custom panic hook #86

Open
florg-32 opened this issue Dec 20, 2022 · 1 comment
Open

Add a custom panic hook #86

florg-32 opened this issue Dec 20, 2022 · 1 comment

Comments

@florg-32
Copy link
Collaborator

florg-32 commented Dec 20, 2022

A Rust program may panic (i.e. cleanly abort execution) in case of fatal errors (e.g. any calls to unwrap() on a Result that contains an Error). This is only logged to stderr, which we cant read from the EDU.

Use std::panic::set_hook(...) to add a function that logs panic information with our usual log::error!()

@florg-32 florg-32 added good first issue Good for newcomers Feature labels Dec 20, 2022
@florg-32 florg-32 removed the good first issue Good for newcomers label Nov 2, 2023
@florg-32 florg-32 added this to the Release v1.0.0 milestone Jan 21, 2024
@florg-32
Copy link
Collaborator Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant