From 505fc40505d6e0078a7b6d4207574112c62ac9b5 Mon Sep 17 00:00:00 2001 From: KoalaBear Date: Sun, 7 Jun 2020 23:20:25 +0200 Subject: [PATCH] - Log more Google Drive errors --- .../GoogleDriveIndexer.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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));