From 83b5998b7639c61aafba80b21ae7d595fd18be65 Mon Sep 17 00:00:00 2001 From: yggverse Date: Wed, 8 Apr 2026 12:54:32 +0300 Subject: [PATCH] debug provider instance initiated --- src/main.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 02e6b5a..0c617fe 100644 --- a/src/main.rs +++ b/src/main.rs @@ -36,8 +36,14 @@ async fn main() { let sleep = config.sleep.map(Duration::from_secs); let mut database = Database::new(&config.database).unwrap(); let client = match config.provider { - config::Provider::Youtube => Provider::youtube(), - config::Provider::Invidious(instance) => Provider::invidious(instance), + config::Provider::Youtube => { + debug!("Init Youtube provider"); + Provider::youtube() + } + config::Provider::Invidious(instance) => { + debug!("Init Invidious ({instance:?}) provider"); + Provider::invidious(instance) + } }; let channel_item_id_regex = Regex::new(r"^[A-z0-9_-]{11}$").unwrap();