mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 10:21:52 +00:00
docker command trace log
This commit is contained in:
committed by
Aiden McClelland
parent
338a034073
commit
97997bff97
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user