Skip to content

Commit 783713e

Browse files
committed
Add debug logging for last-write-time attr update
1 parent eb0576c commit 783713e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

DevProxy.Abstractions/Data/MSGraphDb.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ public async Task<int> GenerateDbAsync(bool skipIfUpdatedToday, CancellationToke
7171
if (!isApiModified)
7272
{
7373
UpdateLastWriteTime(dbFileInfo);
74+
_logger.LogDebug("Updated the last-write-time of Microsoft Graph database {File}", dbFileInfo);
7475
_logger.LogInformation("Microsoft Graph database is already updated");
7576
return 1;
7677
}
@@ -236,6 +237,7 @@ private async Task<bool> DownloadOpenAPIFileAsync(string url, FileInfo yamlFile,
236237
if (response.StatusCode == HttpStatusCode.NotModified)
237238
{
238239
UpdateLastWriteTime(yamlFile);
240+
_logger.LogDebug("Updated the last-write-time of OpenAPI file {File}", yamlFile);
239241
return false;
240242
}
241243

0 commit comments

Comments
 (0)