Added logging

This commit is contained in:
2022-08-10 17:33:31 +02:00
parent faf15d1398
commit 270c138419
6 changed files with 97 additions and 26 deletions

View File

@@ -13,9 +13,9 @@ impl ShellAction {
}
pub fn execute(self) -> anyhow::Result<()> {
println!("executing shell action: {}", self.path.clone());
log::debug!("executing shell action: {}", self.path.clone());
println!(
log::info!(
"
===
Starting running shell action: {}
@@ -35,13 +35,13 @@ Starting running shell action: {}
let stdout_reader = BufReader::new(stdout);
let mut stdout_lines = stdout_reader.lines();
while let Some(Ok(line)) = stdout_lines.next() {
println!("{}", line);
log::info!("{}", line)
}
}
process.wait()?;
println!(
log::info!(
"
===
Finished running shell action