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!()
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 usuallog::error!()