add more error messages to know whats happen
This commit is contained in:
parent
baf25c2093
commit
fc9ffd149b
@ -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();
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user