Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Fix backtrace spam on remote server (#19850)

Mikayla Maki826d83edfee4
diff --git a/crates/remote/src/ssh_session.rs b/crates/remote/src/ssh_session.rs
index 422937ed234..857b139736b 100644
--- a/crates/remote/src/ssh_session.rs
+++ b/crates/remote/src/ssh_session.rs
@@ -1221,9 +1221,11 @@ impl RemoteConnection for SshRemoteConnection {
delegate.set_status(Some("Starting proxy"), cx);
let mut start_proxy_command = format!(
- "RUST_LOG={} RUST_BACKTRACE={} {:?} proxy --identifier {}",
+ "RUST_LOG={} {} {:?} proxy --identifier {}",
std::env::var("RUST_LOG").unwrap_or_default(),
- std::env::var("RUST_BACKTRACE").unwrap_or_default(),
+ std::env::var("RUST_BACKTRACE")
+ .map(|b| { format!("RUST_BACKTRACE={}", b) })
+ .unwrap_or_default(),
remote_binary_path,
unique_identifier,
);