Improve logging exceptions with periodic runner
MODIFY
WalletWasabi/Bases/LastExceptionTracker.cs
WalletWasabi/Bases/LastExceptionTracker.cs
using System;
+using WalletWasabi.Logging;
namespace WalletWasabi.Bases
{
@@ -26,6 +27,7 @@ namespace WalletWasabi.Bases
else
{
LastException = new ExceptionInfo(currentException);
+ Logger.LogError(currentException);
}
return LastException!;

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

Improve logging exceptions with periodic runner