Skip to content

Commit 51848bf

Browse files
committed
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 <kolyshkin@gmail.com>
1 parent 891fa63 commit 51848bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/registry/client/fetcher.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ func (c *client) iterateEndpoints(ctx context.Context, namedRef reference.Named,
231231
repoEndpoint := repositoryEndpoint{endpoint: endpoint, info: repoInfo}
232232
repo, err := c.getRepositoryForReference(ctx, namedRef, repoEndpoint)
233233
if err != nil {
234-
logrus.Debugf("error with repo endpoint %s: %s", repoEndpoint, err)
234+
logrus.Debugf("error %s with repo endpoint %+v", err, repoEndpoint)
235235
if _, ok := err.(ErrHTTPProto); ok {
236236
continue
237237
}

0 commit comments

Comments
 (0)