From 2a4e7c732630cabb28b28f6b91d75190dd8f9420 Mon Sep 17 00:00:00 2001 From: FliegendeWurst <2012gdwu@web.de> Date: Fri, 24 Apr 2020 20:46:05 +0200 Subject: [PATCH] Tweak logging --- src/main.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 1dc5b34..2af53ad 100644 --- a/src/main.rs +++ b/src/main.rs @@ -440,7 +440,7 @@ impl ILIAS { } async fn download(&self, url: &str) -> Result { - if self.opt.verbose > 0 { + if self.opt.verbose > 1 { println!("Downloading {}", url); } if url.starts_with("http") || url.starts_with("ilias.studium.kit.edu") { @@ -551,6 +551,9 @@ use crate::selectors::*; fn process(ilias: Arc, path: PathBuf, obj: Object) -> impl std::future::Future> + Send { async move { let relative_path = path.strip_prefix(&ilias.opt.output).unwrap(); if ilias.ignore.matched(relative_path, obj.is_dir()).is_ignore() { + if ilias.opt.verbose > 0 { + println!("Ignoring {:?}..", relative_path); + } return Ok(()); } if ilias.opt.verbose > 0 {