Skip to content

Commit

Permalink
Remove debug print
Browse files Browse the repository at this point in the history
  • Loading branch information
smira committed Aug 7, 2019
1 parent eb1b70a commit 03c24ec
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions http/download.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"context"
"fmt"
"io"
"log"
"net"
"net/http"
"net/url"
Expand Down Expand Up @@ -82,12 +81,8 @@ func (downloader *downloaderImpl) GetLength(ctx context.Context, url string) (in
resp, err = downloader.client.Do(req)
if err != nil && retryableError(err) {
maxTries--
log.Printf("http: retrying head for %q: %s", url, err)
} else {
// stop retrying
if err != nil {
log.Printf("http: non-retryable error for %q: %s %#+v", url, err, err)
}
break
}
}
Expand Down Expand Up @@ -173,11 +168,7 @@ func (downloader *downloaderImpl) DownloadWithChecksum(ctx context.Context, url

if err != nil && retryableError(err) {
maxTries--
log.Printf("http: retrying for %q: %s", url, err)
} else {
if err != nil {
log.Printf("http: non-retryable error for %q: %s %#+v", url, err, err)
}
// get out of the loop
break
}
Expand Down

0 comments on commit 03c24ec

Please sign in to comment.