add more error messages to know whats happen

This commit is contained in:
Jonathan Baecker 2024-09-29 16:57:28 +02:00
parent baf25c2093
commit fc9ffd149b
2 changed files with 8 additions and 0 deletions

View File

@ -47,6 +47,7 @@ fn server_monitor(
.iter()
.any(|i| line.contains(*i))
{
error!(target: Target::file_mail(), channel = id; "Hit unrecoverable error!");
channel_mgr.channel.lock().unwrap().active = false;
channel_mgr.stop_all();
}

View File

@ -638,6 +638,8 @@ pub fn loop_image(config: &PlayoutConfig, node: &Media) -> Vec<String> {
]);
} else if vtt_dummy.is_file() {
source_cmd.append(&mut vec_strings!["-i", vtt_dummy.to_string_lossy()]);
} else {
error!("WebVTT enabled, but no vtt or dummy file found!");
}
}
@ -677,6 +679,8 @@ pub fn loop_filler(config: &PlayoutConfig, node: &Media) -> Vec<String> {
]);
} else if vtt_dummy.is_file() {
source_cmd.append(&mut vec_strings!["-i", vtt_dummy.to_string_lossy()]);
} else {
error!("WebVTT enabled, but no vtt or dummy file found!");
}
}
@ -789,6 +793,8 @@ pub fn gen_dummy(config: &PlayoutConfig, duration: f64) -> (String, Vec<String>)
if vtt_dummy.is_file() {
source_cmd.append(&mut vec_strings!["-i", vtt_dummy.to_string_lossy()]);
} else {
error!("WebVTT enabled, but no vtt or dummy file found!");
}
}
@ -906,6 +912,7 @@ pub fn stderr_reader(
|| (line.contains("No such file or directory")
&& !line.contains("failed to delete old segment"))
{
error!(target: Target::file_mail(), channel = id; "Hit unrecoverable error!");
manager.channel.lock().unwrap().active = false;
manager.stop_all();
}