[archive executor] Log at error level failed executions
@@ -81,11 +81,17 @@ impl Executor for ScriptExecutor {
},
)?;
+ if output.status.success() {
debug!(
- "ScriptExecutor - executed: [{}] - Status: {}",
- &final_script,
- output.status
+ "ScriptExecutor - Script completed successfully with status: [{}] - script: [{}]",
+ &final_script, output.status
);
+ } else {
+ error!(
+ "ScriptExecutor - Script returned error status: [{}] - script: [{}]",
+ &final_script, output.status
+ );
+ }
Ok(())
}
