Skip to content

Commit

Permalink
Alignment with recent PR to address #32.
Browse files Browse the repository at this point in the history
  • Loading branch information
david-i-berry committed Dec 6, 2024
1 parent 4474942 commit 1b0167c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions wis2downloader/downloader/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1b0167c

Please sign in to comment.