Log failed registry mirror attempt in debug.

Signed-off-by: Lantao Liu <lantaol@google.com>
This commit is contained in:
Lantao Liu 2019-05-08 23:56:29 -07:00
parent 82ff9372ad
commit 4037806184

View File

@ -270,6 +270,7 @@ func (c *criService) getResolver(ctx context.Context, ref string, cred func(stri
if err == nil { if err == nil {
return resolver, desc, nil return resolver, desc, nil
} }
logrus.WithError(err).Debugf("Tried registry mirror %q but failed", e)
// Continue to try next endpoint // Continue to try next endpoint
} }
resolver := docker.NewResolver(docker.ResolverOptions{ resolver := docker.NewResolver(docker.ResolverOptions{