rest: log url when erroring out without retrying

This commit is contained in:
Paride Legovini 2025-11-27 17:43:53 +01:00
parent 0ce8e6c926
commit a4f11e0ad0

View File

@ -41,6 +41,7 @@ class Rest:
exc = e exc = e
except (HTTPError, URLError) as e: except (HTTPError, URLError) as e:
if e.code not in (503, 502): if e.code not in (503, 502):
self.logger.error("Caught error %d downloading '%s'", e.code, url)
raise raise
self.logger.info( self.logger.info(
"Caught error %d downloading '%s', will retry %d more times." "Caught error %d downloading '%s', will retry %d more times."