Skip to content
Snippets Groups Projects
Commit 0674a830 authored by Georgy Moshkin's avatar Georgy Moshkin :speech_balloon:
Browse files

fix: cleanup backtrace logging

parent 2fcb0ebd
No related branches found
No related tags found
1 merge request!1209plugin system cleanup
......@@ -121,11 +121,10 @@ pub fn main(args: args::Run) -> ! {
.start_non_joinable()?;
std::panic::set_hook(Box::new(|info| {
tlog!(Info, "Panic occurred, exiting: {}", info);
tlog!(Critical, "{info}");
let backtrace = std::backtrace::Backtrace::capture();
if backtrace.status() == std::backtrace::BacktraceStatus::Captured {
tlog!(Info, "{}", backtrace);
}
tlog!(Critical, "backtrace:\n{}", backtrace);
tlog!(Critical, "aborting due to panic");
std::process::abort();
}));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment