From b71d9678892814a62d422af11eb91e61943836a2 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Wed, 29 Jun 2022 20:00:38 +0200 Subject: Fetch ENVELOPE works \o/ --- src/main.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 5d139b6..6744157 100644 --- a/src/main.rs +++ b/src/main.rs @@ -118,6 +118,12 @@ async fn main() -> Result<()> { std::env::set_var("RUST_LOG", "main=info,mailrage=info,k2v_client=info") } + // Abort on panic (same behavior as in Go) + std::panic::set_hook(Box::new(|panic_info| { + tracing::error!("{}", panic_info.to_string()); + std::process::abort(); + })); + tracing_subscriber::fmt::init(); let args = Args::parse(); -- cgit v1.2.3