From 50d688d1652c8b2cca5109af76a7dff3878eb861 Mon Sep 17 00:00:00 2001 From: Tom Parker-Shemilt Date: Sat, 14 Sep 2024 16:04:18 +0100 Subject: [PATCH] Better debug for no valid github/crates link --- src/main.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 0bab564..18a0cdf 100644 --- a/src/main.rs +++ b/src/main.rs @@ -461,6 +461,7 @@ async fn main() -> Result<(), Error> { let mut star_override_level: Option = None; for (event, _range) in parser.into_offset_iter() { + debug!("Event {:?}", event); match event { Event::Start(tag) => { match tag { @@ -578,10 +579,10 @@ async fn main() -> Result<(), Error> { && cargo_downloads.unwrap_or(0) < MINIMUM_CARGO_DOWNLOADS { if github_stars.is_none() { - warn!("No valid github link"); + warn!("No valid github link for {list_item}"); } if cargo_downloads.is_none() { - warn!("No valid crates link"); + warn!("No valid crates link for {list_item}"); } return Err(format_err!("Not high enough metrics ({:?} stars < {}, and {:?} cargo downloads < {}): {}", github_stars, required_stars, cargo_downloads, MINIMUM_CARGO_DOWNLOADS, list_item)); }