Skip to content

Commit

Permalink
- Log more Google Drive errors
Browse files Browse the repository at this point in the history
  • Loading branch information
KoalaBear84 committed Jun 7, 2020
1 parent 239f7b1 commit 505fc40
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion OpenDirectoryDownloader.GoogleDrive/GoogleDriveIndexer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,15 @@ public static async Task<WebDirectory> IndexAsync(WebDirectory webDirectory)
catch (GoogleApiException ex)
{
rateLimitException = ex.Error.Message == "User rate limit exceeded.";
Logger.Debug($"Google Drive rate limit, try again");

if (rateLimitException)
{
Logger.Debug($"Google Drive rate limit, try again");
}
else
{
Logger.Error($"Google Drive error: {ex}");
}
}
} while (rateLimitException);
} while (!string.IsNullOrWhiteSpace(nextPageToken));
Expand Down

0 comments on commit 505fc40

Please sign in to comment.