Skip to content

Commit

Permalink
Temporary test
Browse files Browse the repository at this point in the history
Signed-off-by: mulhern <[email protected]>
  • Loading branch information
mulkieran committed Jan 4, 2024
1 parent 9447000 commit ffc4788
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/engine/strat_engine/cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,11 @@ fn execute_cmd(cmd: &mut Command) -> StratisResult<()> {
/// command fails or if the command itself fails.
fn handle_output(cmd: &mut Command, output: Output) -> StratisResult<()> {
if output.status.success() {
if cmd.get_program() == THIN_CHECK {
let std_out_txt = String::from_utf8_lossy(&output.stdout);
let std_err_txt = String::from_utf8_lossy(&output.stderr);
info!("Command succeeded: cmd: {cmd:?}, stdout: {std_out_txt} stderr: {std_err_txt}");
}
Ok(())
} else {
let exit_reason = output
Expand Down

0 comments on commit ffc4788

Please sign in to comment.