From 9deab5a563eee86d35fa6ef9d9e9c2ce15fe5fee 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 d788b50da..2ac05b565 100755 --- a/backend/dropbox/dropbox.go +++ b/backend/dropbox/dropbox.go @@ -310,7 +310,7 @@ func shouldRetry(ctx context.Context, 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