Add more logging to distant and ssh handler proc_run methods

pull/96/head
Chip Senkbeil 3 years ago
parent a672515378
commit 0f56669ccd
No known key found for this signature in database
GPG Key ID: 35EF1F8EC72A4131

@ -436,6 +436,13 @@ where
{
let id = rand::random();
debug!(
"<Conn @ {} | Proc {}> 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!(
"<Conn @ {} | Proc {}> Spawned successfully! Will enter post hook later",
conn_id, id
);
Ok(Outgoing {
data: ResponseData::ProcStart { id },
post_hook: Some(post_hook),

@ -616,6 +616,7 @@ where
let id = rand::random();
let cmd_string = format!("{} {}", cmd, args.join(" "));
debug!("<Ssh | Proc {}> Spawning {}", id, cmd_string);
let ExecResult {
mut stdin,
mut stdout,
@ -835,6 +836,10 @@ where
});
});
debug!(
"<Ssh | Proc {}> Spawned successfully! Will enter post hook later",
id
);
Ok(Outgoing {
data: ResponseData::ProcStart { id },
post_hook: Some(post_hook),

Loading…
Cancel
Save