Log exceptions
MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/CoinJoinTabViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/CoinJoinTabViewModel.cs
@@ -257,7 +257,6 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
}
catch (Exception ex)
{
- Logger.LogWarning(ex);
var builder = new StringBuilder(ex.ToTypeMessageString());
if (ex is AggregateException aggex)
{
@@ -267,6 +266,7 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
}
}
NotificationHelpers.Error(builder.ToString());
+ Logger.LogError(ex);
}
Password = string.Empty;

MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/CoinViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/CoinViewModel.cs
@@ -14,6 +14,7 @@ using WalletWasabi.Gui.Helpers;
using WalletWasabi.Gui.Models;
using WalletWasabi.Gui.ViewModels;
using WalletWasabi.Models;
+using WalletWasabi.Logging;
namespace WalletWasabi.Gui.Controls.WalletExplorer
{
@@ -120,12 +121,12 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
.Subscribe(ex =>
{
NotificationHelpers.Error(ex.ToTypeMessageString());
- Logging.Logger.LogWarning(ex);
+ Logger.LogError(ex);
});
DequeueCoin.ThrownExceptions
.ObserveOn(RxApp.TaskpoolScheduler)
- .Subscribe(ex => Logging.Logger.LogError(ex)); // Don't notify about it. Dequeue failure (and success) is notified by other mechanism.
+ .Subscribe(ex => Logger.LogError(ex)); // Don't notify about it. Dequeue failure (and success) is notified by other mechanism.
}
public SmartCoin Model { get; }

MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/HistoryTabViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/HistoryTabViewModel.cs
@@ -45,7 +45,7 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
.Subscribe(ex =>
{
NotificationHelpers.Error(ex.ToTypeMessageString());
- Logger.LogWarning(ex);
+ Logger.LogError(ex);
});
_ = TryRewriteTableAsync();

MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/PinPadViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/PinPadViewModel.cs
@@ -17,6 +17,7 @@ using WalletWasabi.Gui.Helpers;
using WalletWasabi.Gui.ViewModels;
using WalletWasabi.Hwi;
using WalletWasabi.Hwi.Models;
+using WalletWasabi.Logging;
namespace WalletWasabi.Gui.Controls.WalletExplorer
{
@@ -58,7 +59,7 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
.Subscribe(ex =>
{
NotificationHelpers.Error(ex.ToTypeMessageString());
- Logging.Logger.LogError(ex);
+ Logger.LogError(ex);
});
}

MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/ReceiveTabViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/ReceiveTabViewModel.cs
@@ -87,7 +87,7 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
.Subscribe(ex =>
{
NotificationHelpers.Error(ex.ToTypeMessageString());
- Logger.LogWarning(ex);
+ Logger.LogError(ex);
});
}

MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/SendTabViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/SendTabViewModel.cs
@@ -336,6 +336,7 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
catch (Exception ex)
{
NotificationHelpers.Error(ex.ToTypeMessageString());
+ Logger.LogError(ex);
return;
}
}
@@ -388,6 +389,7 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
catch (Exception ex)
{
NotificationHelpers.Error(ex.ToTypeMessageString());
+ Logger.LogError(ex);
return;
}
finally
@@ -457,7 +459,7 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
.ObserveOn(RxApp.TaskpoolScheduler)
.Subscribe(ex =>
{
- NotificationHelpers.Warning(ex.ToTypeMessageString());
+ NotificationHelpers.Error(ex.ToTypeMessageString());
Logger.LogError(ex);
});
}

MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/TransactionBroadcasterViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/TransactionBroadcasterViewModel.cs
@@ -220,6 +220,7 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
catch (PSBTException ex)
{
NotificationHelpers.Error($"The PSBT cannot be finalized: {ex.Errors.FirstOrDefault()}");
+ Logger.LogError(ex);
}
finally
{

MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/TransactionViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/TransactionViewModel.cs
@@ -34,7 +34,7 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
.Subscribe(ex =>
{
NotificationHelpers.Error(ex.ToTypeMessageString());
- Logger.LogWarning(ex);
+ Logger.LogError(ex);
});
}

MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/WalletInfoViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/WalletInfoViewModel.cs
@@ -12,6 +12,7 @@ using WalletWasabi.Helpers;
using WalletWasabi.Services;
using WalletWasabi.Models;
using WalletWasabi.Gui.Helpers;
+using WalletWasabi.Logging;
using System.Reactive.Linq;
using Splat;
@@ -64,8 +65,8 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
.ObserveOn(RxApp.TaskpoolScheduler)
.Subscribe(ex =>
{
- Logging.Logger.LogError(ex);
NotificationHelpers.Error(ex.ToUserFriendlyString());
+ Logger.LogError(ex);
});
}

MODIFY
WalletWasabi.Gui/ViewModels/AddressViewModel.cs
WalletWasabi.Gui/ViewModels/AddressViewModel.cs
@@ -133,7 +133,7 @@ namespace WalletWasabi.Gui.ViewModels
.Subscribe(ex =>
{
NotificationHelpers.Error(ex.ToTypeMessageString());
- Logger.LogWarning(ex);
+ Logger.LogError(ex);
});
}

Log exceptions