From 241d8ee3f661f0c2585cd288a695cb5099b05677 Mon Sep 17 00:00:00 2001 From: jb-alvarado Date: Wed, 26 Oct 2022 16:53:23 +0200 Subject: [PATCH] print version in debug level --- ffplayout-engine/src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ffplayout-engine/src/main.rs b/ffplayout-engine/src/main.rs index d669db2e..f90ea2a1 100644 --- a/ffplayout-engine/src/main.rs +++ b/ffplayout-engine/src/main.rs @@ -29,6 +29,8 @@ use ffplayout::utils::Args; #[cfg(debug_assertions)] use ffplayout_lib::utils::{mock_time, time_now}; +const VERSION: &str = env!("CARGO_PKG_VERSION"); + #[derive(Serialize, Deserialize)] struct StatusData { time_shift: f64, @@ -42,7 +44,7 @@ struct StatusData { /// /// When file not exists we create it, and when it exists we get its values. fn status_file(stat_file: &str, playout_stat: &PlayoutStatus) { - debug!("Status file path: {stat_file}"); + debug!("Start ffplayout v{VERSION}, status file path: {stat_file}"); if !PathBuf::from(stat_file).exists() { let data = json!({