Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Log retry attempt

Neeraj Gupta9135c9181275
diff --git a/internal/api/client.go b/internal/api/client.go
index b2d76b2110..b2f1645899 100644
--- a/internal/api/client.go
+++ b/internal/api/client.go
@@ -2,8 +2,8 @@ package api
import (
"context"
- "fmt"
"github.com/go-resty/resty/v2"
+ "log"
"time"
)
@@ -76,7 +76,7 @@ func NewClient(p Params) *Client {
AddRetryCondition(func(r *resty.Response, err error) bool {
shouldRetry := r.StatusCode() == 429 || r.StatusCode() > 500
if shouldRetry {
- fmt.Println(fmt.Printf("retrying download due to %d code", r.StatusCode()))
+ log.Printf("retrying download due to %d code", r.StatusCode())
}
return shouldRetry
}),