From 455aed76f03c03e8fd4745aeeb0c495966175962 Mon Sep 17 00:00:00 2001 From: OMGeeky Date: Sat, 15 Apr 2023 20:01:48 +0200 Subject: [PATCH] logs & dependency update --- Cargo.lock | 10 ++++++---- Cargo.toml | 14 +++++++------- src/lib.rs | 5 ++++- 3 files changed, 17 insertions(+), 12 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b01ca50..491299b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -384,10 +384,12 @@ dependencies = [ [[package]] name = "downloader_config" -version = "0.3.0" -source = "git+https://github.com/OMGeeky/downloader_config#a484c2ece44554f47d72a3e8541abc0dda9c78bb" +version = "0.4.0" +source = "git+https://github.com/OMGeeky/downloader_config#c3cff264c2bcb3815a8d5652864399a5d436eaad" dependencies = [ "log", + "serde", + "serde_json", ] [[package]] @@ -2071,8 +2073,8 @@ dependencies = [ [[package]] name = "twitch_data" -version = "0.1.7" -source = "git+https://github.com/OMGeeky/twitch_data#b28cb4670ebf08fc2952682da2b1807efa4e939c" +version = "0.1.8" +source = "git+https://github.com/OMGeeky/twitch_data#61762208ad676a2990a2f4957fc5cd35b9da3866" dependencies = [ "async-recursion", "chrono", diff --git a/Cargo.toml b/Cargo.toml index 5fb3e8a..8f32a96 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,18 +6,18 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -google_bigquery_v2 = { version="0.2.1", git = "https://github.com/OMGeeky/google_bigquery_v2" } -google_youtube = { version="0.1.1",git = "https://github.com/OMGeeky/google_youtube" } -twitch_data = { version="0.1.7", git = "https://github.com/OMGeeky/twitch_data" } -downloader_config = { version="0.3.0", git = "https://github.com/OMGeeky/downloader_config" } +google_bigquery_v2 = { version = "0.2", git = "https://github.com/OMGeeky/google_bigquery_v2" } +google_youtube = { version = "0.1", git = "https://github.com/OMGeeky/google_youtube" } +twitch_data = { version = "0.1", git = "https://github.com/OMGeeky/twitch_data" } +downloader_config = { version = "0.4", git = "https://github.com/OMGeeky/downloader_config" } tokio = "1.23" chrono = "0.4.23" nameof = "1.2.2" log = "0.4.17" simplelog = "0.12.1" -log4rs = { version = "1.2.0" , features = ["compound_policy", "default", "size_trigger", "all_components", "gzip"] } +log4rs = { version = "1.2.0", features = ["compound_policy", "default", "size_trigger", "all_components", "gzip"] } path-clean = "1.0.1" -log-panics = { version = "2", features = ["with-backtrace"]} +log-panics = { version = "2", features = ["with-backtrace"] } env_logger = "0.10.0" -anyhow = "1.0.70" \ No newline at end of file +anyhow = "1.0.70" diff --git a/src/lib.rs b/src/lib.rs index baf196d..6bb404e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -263,7 +263,7 @@ async fn backup_video<'a>( ) .await?; video_parts.sort(); - + trace!("Creating youtube client"); let youtube_client = YoutubeClient::new( Some(config.youtube_client_secret_path.as_str()), vec![ @@ -283,6 +283,9 @@ async fn backup_video<'a>( .await .map_err(|e| anyhow!("{}", e))?; info!("Uploading video to youtube"); + debug!("Video parts: {:?}", video_parts); + debug!("Video: {:?}", video); + debug!("Config: {:?}", config); let res = upload_video_to_youtube(&video_parts, video, &youtube_client, config).await; if let Err(e) = res { info!("Error uploading video: {}", e);