Skip to content

Commit

Permalink
Move warning to debug, way too verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit74 committed Jul 10, 2024
1 parent 97d8ade commit 62cfc3c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/ted2zim/scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(

Check warning on line 849 in src/ted2zim/scraper.py

View check run for this annotation

Codecov / codecov/patch

src/ted2zim/scraper.py#L849

Added line #L849 was not covered by tests
f"Video at {url} has not yet been translated into "
f"{requested_lang_code}"
)
Expand Down

0 comments on commit 62cfc3c

Please sign in to comment.