Skip to content

Commit 025a2b3

Browse files
authored
Add extra logging to DownloadFile after all retries fail (#14147)
1 parent eed07a0 commit 025a2b3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/Microsoft.DotNet.Arcade.Sdk/src/DownloadFile.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ private async Tasks.Task<bool> DownloadWithRetriesAsync(HttpClient httpClient, s
183183
}
184184

185185
Log.LogMessage($"Retrying download of '{uri}' to '{DestinationPath}' due to failure: '{e.Message}' ({attempt}/{Retries})");
186+
Log.LogErrorFromException(e, true, true, null);
186187

187188
await Tasks.Task.Delay(RetryDelayMilliseconds).ConfigureAwait(false);
188189
continue;

0 commit comments

Comments
 (0)