From fc9ffd149b5955f44d537a982f3fcc5fd5e5b146 Mon Sep 17 00:00:00 2001 From: Jonathan Baecker Date: Sun, 29 Sep 2024 16:57:28 +0200 Subject: [PATCH] add more error messages to know whats happen --- engine/src/player/input/ingest.rs | 1 + engine/src/player/utils/mod.rs | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/engine/src/player/input/ingest.rs b/engine/src/player/input/ingest.rs index 2b1649aa..d3d0a191 100644 --- a/engine/src/player/input/ingest.rs +++ b/engine/src/player/input/ingest.rs @@ -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(); } diff --git a/engine/src/player/utils/mod.rs b/engine/src/player/utils/mod.rs index ae16356e..b17adfac 100644 --- a/engine/src/player/utils/mod.rs +++ b/engine/src/player/utils/mod.rs @@ -638,6 +638,8 @@ pub fn loop_image(config: &PlayoutConfig, node: &Media) -> Vec { ]); } 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 { ]); } 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) 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(); }