only log first error if retrying during get
Ted Unangst tedu@tedunangst.com
Thu, 18 Jul 2019 15:13:10 -0400
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
activity.go
→
activity.go
@@ -128,10 +128,10 @@ req = req.WithContext(ctx)
} resp, err := client.Do(req) if err != nil { - log.Printf("first get failed: %s", err) if timeout > 0 || !strings.Contains(err.Error(), "TLS handshake timeout") { return nil, err } + log.Printf("first get failed: %s", err) resp, err = client.Do(req) if err != nil { return nil, err