Skip to content

Commit c9994ed

Browse files
samalbashin-
authored andcommitted
Moved the Debugf message in a registry to a more useful place
1 parent b0e076f commit c9994ed

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

registry.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,8 @@ func (graph *Graph) getRemoteTags(stdout io.Writer, registries []string, reposit
187187
req.Header.Set("Authorization", "Token "+strings.Join(token, ", "))
188188
res, err := client.Do(req)
189189
defer res.Body.Close()
190+
Debugf("Got status code %d from %s", res.StatusCode, endpoint)
190191
if err != nil || (res.StatusCode != 200 && res.StatusCode != 404) {
191-
Debugf("Registry isn't responding: trying another registry endpoint")
192192
continue
193193
} else if res.StatusCode == 404 {
194194
return nil, fmt.Errorf("Repository not found")

0 commit comments

Comments
 (0)