From 1b0167c434ed2fc32963da08a9a4db7557b6916c Mon Sep 17 00:00:00 2001 From: david-i-berry Date: Fri, 6 Dec 2024 10:58:52 +0100 Subject: [PATCH] Alignment with recent PR to address #32. --- wis2downloader/downloader/__init__.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/wis2downloader/downloader/__init__.py b/wis2downloader/downloader/__init__.py index 8dfb680..be9ef5a 100644 --- a/wis2downloader/downloader/__init__.py +++ b/wis2downloader/downloader/__init__.py @@ -182,9 +182,8 @@ def process_job(self, job) -> None: try: response = self.http.request('GET', _url) if response.status != 200: - LOGGER.error(f"Error fetching file from {_url}.") - LOGGER.error(f".... Status code: {response.status}") - LOGGER.error(f".... Content: {response.data}") + LOGGER.error(f"Error downloading {_url}, received status code: {response.status}") + # Increment failed download counter FAILED_DOWNLOADS.labels(topic=topic, centre_id=centre_id).inc(1) return # Get the filesize in KB