Added logging
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user