Skip to content

Commit

Permalink
refa (DfuInstallation::OnProgressChanged()): we now emit errors using…
Browse files Browse the repository at this point in the history
… WriteLineAsync() for the sake of performance
  • Loading branch information
ksidirop-laerdal committed Feb 26, 2025
1 parent bd32d08 commit 3a7f459
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Laerdal.Dfu/DfuInstallation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ internal void OnProgressChanged(double progress, double currentSpeedBytesPerSeco
{
try
{
Console.Error.WriteLine($"[DI.OPC.010] [DfuInstallation.OnProgressChanged()] [BUG] Suppressed internal bug while trying to calculate progress - report this incident!\n\n{ex}");
Console.Error.WriteLineAsync($"[DI.OPC.010] [DfuInstallation.OnProgressChanged()] [BUG] Suppressed internal bug while trying to calculate progress - report this incident!\n\n{ex}");
}
catch
{
Expand All @@ -224,7 +224,7 @@ internal void OnProgressChanged(double progress, double currentSpeedBytesPerSeco
{
try
{
Console.Error.WriteLine($"[DI.OPC.020] [DfuInstallation.OnProgressChanged()::ProgressChangedEvent] [USERLAND BUG - SUPPRESSED] Error while raising event ProgressChanged - report this incident!\n\n{ex}");
Console.Error.WriteLineAsync($"[DI.OPC.020] [DfuInstallation.OnProgressChanged()::ProgressChangedEvent] [USERLAND BUG - SUPPRESSED] Error while raising event ProgressChanged - report this incident!\n\n{ex}");
}
catch
{
Expand Down

0 comments on commit 3a7f459

Please sign in to comment.