Skip to content

Commit

Permalink
Merge pull request #579 from WildernessLabs/enhance-ota-download-erro…
Browse files Browse the repository at this point in the history
…r-exception-message

Add more exception data to the OTA download error message
  • Loading branch information
ctacke authored Feb 4, 2025
2 parents cce0de1 + 3299ffd commit af41948
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Meadow.Core/Cloud/MeadowCloudUpdateService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ private async Task DownloadProc(UpdateMessage message)
sw.Stop();

// TODO: raise some event?
Resolver.Log.Error($"Failed to download Update after {sw.Elapsed.TotalSeconds:0} seconds: {ex.Message}");
Resolver.Log.Error($"[ {ex.GetType().Name} ] Failed to download Update after {sw.Elapsed.TotalSeconds:0} seconds: {ex.Message} {ex.StackTrace}");

Resolver.Log.Info($"Retrying attempt {retryCount + 1} of {MaxDownloadRetries} in {RetryDelayMilliseconds} milliseconds...");
await Task.Delay(RetryDelayMilliseconds);
Expand Down

0 comments on commit af41948

Please sign in to comment.