diff options
author | Matthias Beyer <matthias.beyer@atos.net> | 2021-05-10 16:20:30 +0200 |
---|---|---|
committer | Matthias Beyer <matthias.beyer@atos.net> | 2021-05-10 16:20:31 +0200 |
commit | 98d5898522da748d48ab97bb9d6893c05aaf7e5f (patch) | |
tree | 14ab2c2ac2a504aea6ee601cc17914e481598e86 /src/main.rs | |
parent | 1ebfa387fa5d47e3200b990f63f55bbe36adeff1 (diff) |
Add human-panic setup
This patch adds a human-panic so that we get nice bug reports if an user
experiences a crash of butido.
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index 45f587f..807032f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -84,6 +84,13 @@ use crate::util::progress::ProgressBars; #[tokio::main] async fn main() -> Result<()> { + human_panic::setup_panic!(Metadata { + name: env!("CARGO_PKG_NAME").into(), + version: env!("CARGO_PKG_VERSION").into(), + authors: "Matthias Beyer <matthias.beyer@atos.net>".into(), + homepage: "atos.net/de/deutschland/sc".into(), + }); + let _ = env_logger::try_init()?; debug!("Debugging enabled"); |