remote: Fix up incorrect logs (#42979)

Lukas Wirth created

Release Notes:

- N/A *or* Added/Fixed/Improved ...

Change summary

crates/remote/src/transport/ssh.rs | 2 +-
crates/remote/src/transport/wsl.rs | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

Detailed changes

crates/remote/src/transport/ssh.rs 🔗

@@ -489,7 +489,7 @@ impl SshRemoteConnection {
         let ssh_shell = socket.shell().await;
         log::info!("Remote shell discovered: {}", ssh_shell);
         let ssh_platform = socket.platform(ShellKind::new(&ssh_shell, false)).await?;
-        log::info!("Remote platform discovered: {}", ssh_shell);
+        log::info!("Remote platform discovered: {:?}", ssh_platform);
         let ssh_path_style = match ssh_platform.os {
             "windows" => PathStyle::Windows,
             _ => PathStyle::Posix,

crates/remote/src/transport/wsl.rs 🔗

@@ -92,7 +92,7 @@ impl WslRemoteConnection {
             .detect_platform()
             .await
             .context("failed detecting platform")?;
-        log::info!("Remote platform discovered: {}", this.shell);
+        log::info!("Remote platform discovered: {:?}", this.platform);
         this.remote_binary_path = Some(
             this.ensure_server_binary(&delegate, release_channel, version, commit, cx)
                 .await