about summary refs log tree commit diff stats
path: root/src/download
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-08-25 15:49:51 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-08-25 15:49:51 +0200
commitdf06c51b39fed58c8230fad93dac2e274d3a7f56 (patch)
treee53b0b9f9a47197e4eecbc609b614c10e8f1b0a6 /src/download
parentfix(downloader): Be smarter, when checking for available cache (diff)
downloadyt-df06c51b39fed58c8230fad93dac2e274d3a7f56.tar.gz
yt-df06c51b39fed58c8230fad93dac2e274d3a7f56.zip
fix(downloader): Remove useless logs
Diffstat (limited to 'src/download')
-rw-r--r--src/download/mod.rs13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/download/mod.rs b/src/download/mod.rs
index b29594f..faf4f37 100644
--- a/src/download/mod.rs
+++ b/src/download/mod.rs
@@ -181,13 +181,6 @@ impl Downloader {
 
                     self.current_download = Some(new_current_download);
                 } else {
-                    debug!(
-                        "Currently downloading '{}'",
-                        current_download
-                            .extractor_hash
-                            .into_short_hash(&app)
-                            .await?
-                    );
                     // Reset the taken value
                     self.current_download = Some(current_download);
                 }
@@ -229,11 +222,7 @@ impl Downloader {
             .boxed()
         }
 
-        let val = dir_size(fs::read_dir(&app.config.paths.download_dir).await?).await;
-        if let Ok(val) = val {
-            info!("Cache dir has a size of '{}'", Bytes::new(val));
-        }
-        val
+        dir_size(fs::read_dir(&app.config.paths.download_dir).await?).await
     }
 
     async fn get_approx_video_size(&mut self, app: &App, video: &Video) -> Result<u64> {