From: Kir Kolyshkin Date: Wed, 10 Oct 2018 06:36:04 +0000 (-0700) Subject: cli/registry: fix a Debugf statement X-Git-Tag: archive/raspbian/18.09.1+dfsg1-7+rpi1^2~18 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=bb3492c661149cb44b1295a2d05aff8cb3fa78f4;p=docker.io.git cli/registry: fix a Debugf statement Fix this warning from go-1.11 > cli/registry/client/fetcher.go:234: Debugf format %s has arg > repoEndpoint of wrong type client.repositoryEndpoint Signed-off-by: Kir Kolyshkin Origin: upstream, https://github.com/docker/cli/commit/51848bf Gbp-Pq: Name cli-fix-registry-debug-message-go-1.11.patch --- diff --git a/cli/cli/registry/client/fetcher.go b/cli/cli/registry/client/fetcher.go index c4c267cf..e3d6cd60 100644 --- a/cli/cli/registry/client/fetcher.go +++ b/cli/cli/registry/client/fetcher.go @@ -231,7 +231,7 @@ func (c *client) iterateEndpoints(ctx context.Context, namedRef reference.Named, repoEndpoint := repositoryEndpoint{endpoint: endpoint, info: repoInfo} repo, err := c.getRepositoryForReference(ctx, namedRef, repoEndpoint) if err != nil { - logrus.Debugf("error with repo endpoint %s: %s", repoEndpoint, err) + logrus.Debugf("error %s with repo endpoint %+v", err, repoEndpoint) if _, ok := err.(ErrHTTPProto); ok { continue }