Log all failed HTTP requests in the container registry client
Problem
Right now, in the ContainerRegistry::Client
, we don't log when an HTTP request to the container registry (or its storage backend when redirected to there) fails. We only catch and log responses whose status code is >= 500. This limits our ability to debug problems.
Solution
We should log all failed (status code >= 400) HTTP requests with the container repository id
and path
.
Edited by David Fernandez