浏览代码

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

Sam Alba 12 年之前
父节点
当前提交
c9994ed0fb
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      registry.go

+ 1 - 1
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")