Merge pull request #1142 from Random-Liu/better-logging-for-registry-try

Log failed registry mirror attempt in debug.
This commit is contained in:
Mike Brown 2019-05-09 10:04:42 -04:00 committed by GitHub
commit e4ebb718c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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