Revert "Enable backtraces by default (#5562)" (#5568)

This reverts commit 8004e8e2a0.
This commit is contained in:
Reilly Wood 2022-05-17 18:02:45 -04:00 committed by GitHub
parent f0cb2f38df
commit 633ebc7e43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,11 +38,6 @@ use std::{
thread_local! { static IS_PERF: RefCell<bool> = RefCell::new(false) }
fn main() -> Result<()> {
// Enable backtraces on panic to help diagnostics
if std::env::var("RUST_BACKTRACE").is_err() {
std::env::set_var("RUST_BACKTRACE", "1");
}
// miette::set_panic_hook();
let miette_hook = std::panic::take_hook();
std::panic::set_hook(Box::new(move |x| {