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