mirror of
https://github.com/4sval/FModel.git
synced 2026-09-07 09:06:25 -05:00
just testing
This commit is contained in:
Submodule CUE4Parse updated: 462298018f...79d7ab436f
@@ -11,6 +11,7 @@ using FModel.Framework;
|
||||
using FModel.Services;
|
||||
using FModel.Settings;
|
||||
using Newtonsoft.Json;
|
||||
using Sentry;
|
||||
using Serilog.Sinks.SystemConsole.Themes;
|
||||
using MessageBox = AdonisUI.Controls.MessageBox;
|
||||
using MessageBoxImage = AdonisUI.Controls.MessageBoxImage;
|
||||
@@ -26,6 +27,12 @@ namespace FModel
|
||||
protected override void OnStartup(StartupEventArgs e)
|
||||
{
|
||||
base.OnStartup(e);
|
||||
SentrySdk.Init(options =>
|
||||
{
|
||||
options.Dsn = "https://2e872a5034c940e787015e5d07e7d82e@o811367.ingest.sentry.io/5805297";
|
||||
options.TracesSampleRate = 1.0;
|
||||
options.AddExceptionFilterForType<OperationCanceledException>();
|
||||
});
|
||||
|
||||
try
|
||||
{
|
||||
|
||||
@@ -111,6 +111,7 @@
|
||||
<PackageReference Include="NVorbis" Version="0.10.1" />
|
||||
<PackageReference Include="Ookii.Dialogs.Wpf" Version="3.1.0" />
|
||||
<PackageReference Include="RestSharp" Version="106.11.7" />
|
||||
<PackageReference Include="Sentry" Version="3.4.0" />
|
||||
<PackageReference Include="Serilog" Version="2.10.0" />
|
||||
<PackageReference Include="Serilog.Sinks.File" Version="4.1.0" />
|
||||
<PackageReference Include="SkiaSharp.HarfBuzz" Version="2.80.2" />
|
||||
|
||||
@@ -12,6 +12,7 @@ using FModel.ViewModels;
|
||||
using FModel.Views;
|
||||
using FModel.Views.Resources.Controls;
|
||||
using ICSharpCode.AvalonEdit.Editing;
|
||||
using Sentry;
|
||||
|
||||
namespace FModel
|
||||
{
|
||||
@@ -53,6 +54,7 @@ namespace FModel
|
||||
{
|
||||
_applicationView.CustomDirectories.Save();
|
||||
_discordHandler.Dispose();
|
||||
SentrySdk.Close();
|
||||
}
|
||||
|
||||
private async void OnLoaded(object sender, RoutedEventArgs e)
|
||||
|
||||
@@ -4,6 +4,7 @@ using System;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using FModel.Views.Resources.Controls;
|
||||
using Sentry;
|
||||
using Serilog;
|
||||
|
||||
namespace FModel.ViewModels
|
||||
@@ -96,6 +97,8 @@ namespace FModel.ViewModels
|
||||
CurrentCancellationTokenSource = null; // kill token
|
||||
|
||||
Log.Error("{Exception}", e);
|
||||
SentrySdk.CaptureException(e);
|
||||
|
||||
FLogger.AppendError();
|
||||
FLogger.AppendText(e.Message, Constants.WHITE, true);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user