diff --git a/OpenDirectoryDownloader.GoogleDrive/GoogleDriveIndexer.cs b/OpenDirectoryDownloader.GoogleDrive/GoogleDriveIndexer.cs index f1277190..7c54c24d 100644 --- a/OpenDirectoryDownloader.GoogleDrive/GoogleDriveIndexer.cs +++ b/OpenDirectoryDownloader.GoogleDrive/GoogleDriveIndexer.cs @@ -117,7 +117,15 @@ public static async Task 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));