Log better. Probably how it was originally intended.
MODIFY
WalletWasabi/Bases/LastExceptionTracker.cs
WalletWasabi/Bases/LastExceptionTracker.cs
@@ -27,7 +27,6 @@ namespace WalletWasabi.Bases
else
{
LastException = new ExceptionInfo(currentException);
- Logger.LogError(currentException);
}
return LastException!;

MODIFY
WalletWasabi/Bases/PeriodicRunner.cs
WalletWasabi/Bases/PeriodicRunner.cs
@@ -94,7 +94,11 @@ namespace WalletWasabi.Bases
catch (Exception ex)
{
// Exception encountered, process it.
- ExceptionTracker.Process(ex);
+ var info = ExceptionTracker.Process(ex);
+ if (info.IsFirst)
+ {
+ Logger.LogError(info.Exception);
+ }
}
// Wait for the next round.

Log better. Probably how it was originally intended.