π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Log retry attempt
Neeraj Gupta9135c9181275
diff --git a/internal/api/client.go b/internal/api/client.goindex b2d76b2110..b2f1645899 100644--- a/internal/api/client.go+++ b/internal/api/client.go@@ -2,8 +2,8 @@ package apiimport ("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() > 500if 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}),