mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-12-08 11:23:34 +00:00
rest: log url when erroring out without retrying
This commit is contained in:
parent
0ce8e6c926
commit
a4f11e0ad0
@ -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."
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user