always output stderr

This commit is contained in:
Brandon Thomas committed 2023-10-20 14:45:03 -04:00
1 parent 7c553ffcee
commit eb3499596e
1 file changed
+3 -3
@@ -207,14 +207,14 @@ pub async fn process_job(args: SadTalkerProcessJobArgs<'_>) -> Result<JobSuccess
let mut error = ProcessSingleJobError::Other(anyhow!("CommandExitStatus: {:?}", command_exit_status));
if let Ok(contents) = read_to_string(&stderr_output_file) {
warn!("Captured stderr output: {}", contents);
match categorize_error(&contents) {
Some(ProcessSingleJobError::FaceDetectionFailure) => {
warn!("Face not detected in source image");
error = ProcessSingleJobError::FaceDetectionFailure;
}
_ => {
warn!("Captured stderr output: {}", contents);
}
_ => {}
}
}