Disable minidump generation on dev builds (again) (#36716)

We accidentally deleted this in #36267

Release Notes:

- N/A
This commit is contained in:
Julia Ryan 2025-08-21 15:27:09 -05:00 committed by GitHub
parent 731b5d0def
commit 20a0c3e920
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -60,7 +60,9 @@ pub fn init_panic_hook(
.or_else(|| info.payload().downcast_ref::<String>().cloned())
.unwrap_or_else(|| "Box<Any>".to_string());
crashes::handle_panic(payload.clone(), info.location());
if *release_channel::RELEASE_CHANNEL != ReleaseChannel::Dev {
crashes::handle_panic(payload.clone(), info.location());
}
let thread = thread::current();
let thread_name = thread.name().unwrap_or("<unnamed>");