diff --git a/crates/zed/src/reliability.rs b/crates/zed/src/reliability.rs index df50ecc74385c164dc238a1191081a3f71ddece0..53539699cc164173cbbe1bf9d1016d3f7de91a2b 100644 --- a/crates/zed/src/reliability.rs +++ b/crates/zed/src/reliability.rs @@ -554,6 +554,10 @@ async fn upload_previous_panics( .log_err(); } + if MINIDUMP_ENDPOINT.is_none() { + return Ok(most_recent_panic); + } + // loop back over the directory again to upload any minidumps that are missing panics let mut children = smol::fs::read_dir(paths::logs_dir()).await?; while let Some(child) = children.next().await { @@ -598,11 +602,12 @@ async fn upload_minidump( ) .text("platform", "rust"); if let Some(panic) = panic { - form = form.text( - "release", - format!("{}-{}", panic.release_channel, panic.app_version), - ); - // TODO: tack on more fields + form = form + .text( + "sentry[release]", + format!("{}-{}", panic.release_channel, panic.app_version), + ) + .text("sentry[logentry][formatted]", panic.payload.clone()); } let mut response_text = String::new();