add rxui exception logging
This commit is contained in:
parent
f0dd778ee1
commit
a1efb6501f
@ -1,8 +1,11 @@
|
||||
using Avalonia;
|
||||
using Avalonia;
|
||||
using Avalonia.Controls.ApplicationLifetimes;
|
||||
using Avalonia.Markup.Xaml;
|
||||
using ReactiveUI;
|
||||
using Serilog;
|
||||
using SPTInstaller.ViewModels;
|
||||
using SPTInstaller.Views;
|
||||
using System.Reactive;
|
||||
|
||||
namespace SPTInstaller;
|
||||
|
||||
@ -11,6 +14,12 @@ public partial class App : Application
|
||||
public override void Initialize()
|
||||
{
|
||||
AvaloniaXamlLoader.Load(this);
|
||||
|
||||
RxApp.DefaultExceptionHandler = Observer.Create<Exception>((exception) =>
|
||||
{
|
||||
Log.Error(exception, "An application exception occurred");
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
public override void OnFrameworkInitializationCompleted()
|
||||
|
@ -4,7 +4,6 @@ using ReactiveUI;
|
||||
using Serilog;
|
||||
using Splat;
|
||||
using SPTInstaller.Controllers;
|
||||
using SPTInstaller.CustomControls;
|
||||
using SPTInstaller.Helpers;
|
||||
using SPTInstaller.Installer_Tasks;
|
||||
using SPTInstaller.Installer_Tasks.PreChecks;
|
||||
|
@ -9,8 +9,8 @@
|
||||
<PackageIcon>icon.ico</PackageIcon>
|
||||
<ApplicationIcon>Assets\icon.ico</ApplicationIcon>
|
||||
<Configurations>Debug;Release;TEST</Configurations>
|
||||
<AssemblyVersion>2.11</AssemblyVersion>
|
||||
<FileVersion>2.11</FileVersion>
|
||||
<AssemblyVersion>2.12</AssemblyVersion>
|
||||
<FileVersion>2.12</FileVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
Loading…
x
Reference in New Issue
Block a user