Moved the Debugf message in a registry to a more useful place

Upstream-commit: c9994ed0fb01c65304fa8bd2eaf80f8a5edd6e41
Component: engine
This commit is contained in:
Sam Alba
2013-05-06 10:57:48 -07:00
committed by shin-
parent e906fe356c
commit 1a68b2e14d
+1 -1
View File
@@ -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")