From 7a3d3103e3ea95077c8b69f4b4212efe910bf343 Mon Sep 17 00:00:00 2001 From: jb-alvarado Date: Thu, 4 Jul 2024 15:09:20 +0200 Subject: [PATCH] create logging path --- ffplayout/src/utils/config.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ffplayout/src/utils/config.rs b/ffplayout/src/utils/config.rs index 9fe3d7b5..70e4a152 100644 --- a/ffplayout/src/utils/config.rs +++ b/ffplayout/src/utils/config.rs @@ -590,6 +590,12 @@ impl PlayoutConfig { .expect("Can't create playlist folder"); } + if !global.logging_path.is_dir() { + tokio::fs::create_dir_all(&global.logging_path) + .await + .expect("Can't create logging folder"); + } + let (filler_path, _, _) = norm_abs_path(&global.storage_path, &config.storage_filler) .expect("Can't get filler path");