diff --git a/distant-core/src/server/distant/handler.rs b/distant-core/src/server/distant/handler.rs index 803ab3f..3bd56da 100644 --- a/distant-core/src/server/distant/handler.rs +++ b/distant-core/src/server/distant/handler.rs @@ -436,6 +436,13 @@ where { let id = rand::random(); + debug!( + " Spawning {} {}", + conn_id, + id, + cmd, + args.join(" ") + ); let mut child = Command::new(cmd.to_string()) .args(args.clone()) .stdin(Stdio::piped()) @@ -649,6 +656,10 @@ where } }); + debug!( + " Spawned successfully! Will enter post hook later", + conn_id, id + ); Ok(Outgoing { data: ResponseData::ProcStart { id }, post_hook: Some(post_hook), diff --git a/distant-ssh2/src/handler.rs b/distant-ssh2/src/handler.rs index c5ae6a5..32041f8 100644 --- a/distant-ssh2/src/handler.rs +++ b/distant-ssh2/src/handler.rs @@ -616,6 +616,7 @@ where let id = rand::random(); let cmd_string = format!("{} {}", cmd, args.join(" ")); + debug!(" Spawning {}", id, cmd_string); let ExecResult { mut stdin, mut stdout, @@ -835,6 +836,10 @@ where }); }); + debug!( + " Spawned successfully! Will enter post hook later", + id + ); Ok(Outgoing { data: ResponseData::ProcStart { id }, post_hook: Some(post_hook),