From 732c0a02e7fc8c64c72d5ae2e15fb84956180372 Mon Sep 17 00:00:00 2001 From: Aadniz <8147434+Aadniz@users.noreply.github.com> Date: Sat, 29 Aug 2026 18:58:36 +0200 Subject: [PATCH] Change logging level from warning to debug There is no actual warning or issue going on in these logger messages. I think it is more appropriate to either remove them completely, or change the logging to debug. These kinds of things becomes important when tracker-scraper is used as a library --- tracker_scraper/scraper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tracker_scraper/scraper.py b/tracker_scraper/scraper.py index e3f92a0..07fb9e8 100644 --- a/tracker_scraper/scraper.py +++ b/tracker_scraper/scraper.py @@ -41,7 +41,7 @@ def scrape(tracker, hashes): def scrape_udp(parsed_tracker, hashes): - logger.warning("Scraping UDP: %s for %s hashes" % + logger.debug("Scraping UDP: %s for %s hashes" % (parsed_tracker.geturl(), len(hashes))) if len(hashes) > 74: raise RuntimeError( @@ -66,7 +66,7 @@ def scrape_udp(parsed_tracker, hashes): def scrape_http(parsed_tracker, hashes): - logger.warning("Scraping HTTP: %s for %s hashes" % + logger.debug("Scraping HTTP: %s for %s hashes" % (parsed_tracker.geturl(), len(hashes))) qs = [] for hash in hashes: