From c9994ed0fb01c65304fa8bd2eaf80f8a5edd6e41 Mon Sep 17 00:00:00 2001 From: Sam Alba Date: Sat, 4 May 2013 09:22:45 -0700 Subject: [PATCH] Moved the Debugf message in a registry to a more useful place --- registry.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/registry.go b/registry.go index b0faee3e71..72379dd3dd 100644 --- a/registry.go +++ b/registry.go @@ -187,8 +187,8 @@ func (graph *Graph) getRemoteTags(stdout io.Writer, registries []string, reposit req.Header.Set("Authorization", "Token "+strings.Join(token, ", ")) res, err := client.Do(req) defer res.Body.Close() + Debugf("Got status code %d from %s", res.StatusCode, endpoint) if err != nil || (res.StatusCode != 200 && res.StatusCode != 404) { - Debugf("Registry isn't responding: trying another registry endpoint") continue } else if res.StatusCode == 404 { return nil, fmt.Errorf("Repository not found")