diff --git a/docs/changelog.rst b/docs/changelog.rst index 6544453..3f0cc03 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -1,6 +1,13 @@ Changelog ========= +Upcoming +-------- + +**Bug Fixes** + +- Changed log level when a suspected gzipped sitemap can't be un-gzipped from `error` to `warning`, since parsing can usually continue (:pr:`62` by :user:`redreceipt`) + v1.1.0 (2025-01-20) ------------------- diff --git a/usp/helpers.py b/usp/helpers.py index 9f729f6..42a093d 100644 --- a/usp/helpers.py +++ b/usp/helpers.py @@ -247,7 +247,7 @@ def ungzipped_response_content( data = gunzip(data) except GunzipException as ex: # In case of an error, just assume that it's one of the non-gzipped sitemaps with ".gz" extension - log.error( + log.warning( f"Unable to gunzip response {response}, maybe it's a non-gzipped sitemap: {ex}" )