From 62cfc3ca4ddb334bfd9b9c813c7143e40160f8e5 Mon Sep 17 00:00:00 2001 From: benoit74 Date: Wed, 10 Jul 2024 12:45:28 +0000 Subject: [PATCH] Move warning to debug, way too verbose --- CHANGELOG.md | 4 ++++ src/ted2zim/scraper.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f12af34..d79ef2e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed + +- Change log level of "Video at {url} has not yet been translated into {requested_lang_code}" messages from warning to debug (way too verbose) + ### Fixed - Restore functionality to resist temporary bad TED responses when parsing video pages (#209) diff --git a/src/ted2zim/scraper.py b/src/ted2zim/scraper.py index 333ae0a..12ff7cb 100644 --- a/src/ted2zim/scraper.py +++ b/src/ted2zim/scraper.py @@ -846,7 +846,7 @@ def extract_info_from_video_page( requested_lang_code = self.get_lang_code_from_url(url) if requested_lang_code and json_data["language"] != requested_lang_code: - logger.warning( + logger.debug( f"Video at {url} has not yet been translated into " f"{requested_lang_code}" )