docker: add missing info log for 4XX/5XX responses

Signed-off-by: Justin Chadwell <me@jedevc.com>
This commit is contained in:
Justin Chadwell 2023-07-24 15:28:37 +01:00
parent 6eb90a63e0
commit a3404ac422

View File

@ -313,6 +313,7 @@ func (r *dockerResolver) Resolve(ctx context.Context, ref string) (string, ocisp
if firstErr == nil {
firstErr = remoteerrors.NewUnexpectedStatusErr(resp)
}
log.G(ctx).Infof("trying next host - response was %s", resp.Status)
continue // try another host
}
return "", ocispec.Descriptor{}, remoteerrors.NewUnexpectedStatusErr(resp)