docker command trace log

This commit is contained in:
Chris Guida
2021-10-05 17:10:43 -05:00
committed by Aiden McClelland
parent 338a034073
commit 97997bff97

View File

@@ -68,6 +68,9 @@ impl DockerAction {
};
cmd.stdout(std::process::Stdio::piped());
cmd.stderr(std::process::Stdio::piped());
if log::log_enabled!(log::Level::Trace) {
log::trace!("{}", format!("{:?}", cmd).split(r#"" ""#).collect::<Vec<&str>>().join(" "));
}
let mut handle = cmd.spawn().with_kind(crate::ErrorKind::Docker)?;
if let (Some(input), Some(stdin)) = (&input_buf, &mut handle.stdin) {
use tokio::io::AsyncWriteExt;