Skip to content

Commit

Permalink
Don't log panic info twice
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-t committed Aug 21, 2023
1 parent 918d7dc commit 182f7ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ fn init_global_state(endpoint_name: &'static str) {
// Log which endpoint panicked.
let prev_hook = panic::take_hook();
panic::set_hook(Box::new(move |panic_info| {
dbg_logf!("panicking {:?}", panic_info);
dbg_logf!("panicking"); // No need to print panic_info here, it'll be printed later anyway.
prev_hook(panic_info);
}));
}
Expand Down

0 comments on commit 182f7ab

Please sign in to comment.