From e74f5b890652a0bc072eca4ee65487117e1ef831 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Tue, 8 Sep 2020 11:34:25 +0100 Subject: [PATCH] dropbox: raise priority of rate limited message to INFO to make it more noticeable If you exceed rate limits, dropbox tells you to wait for 300 seconds - this is rather a long time for the user to be waiting for rclone to finish, so emit a NOTICE level log instead of a DEBUG. --- backend/dropbox/dropbox.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/dropbox/dropbox.go b/backend/dropbox/dropbox.go index d9b0cd845..ad5c95189 100755 --- a/backend/dropbox/dropbox.go +++ b/backend/dropbox/dropbox.go @@ -230,7 +230,7 @@ func shouldRetry(err error) (bool, error) { switch e := err.(type) { case auth.RateLimitAPIError: if e.RateLimitError.RetryAfter > 0 { - fs.Debugf(baseErrString, "Too many requests or write operations. Trying again in %d seconds.", e.RateLimitError.RetryAfter) + fs.Logf(baseErrString, "Too many requests or write operations. Trying again in %d seconds.", e.RateLimitError.RetryAfter) err = pacer.RetryAfterError(err, time.Duration(e.RateLimitError.RetryAfter)*time.Second) } return true, err