Skip to content

Commit

Permalink
πŸ› hopefully fixed chromium not running
Browse files Browse the repository at this point in the history
  • Loading branch information
AlizerUncaged committed Feb 21, 2024
1 parent 19824ed commit 9ea4e0f
Show file tree
Hide file tree
Showing 4 changed files with 179 additions and 167 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ By harnessing the power of the current technologies we have, we can turn the voi
- Elevenlabs key, you can find it [here](https://beta.elevenlabs.io/subscription).


<div>
<div align="center">
<center>
<img align="center" src="https://i.ibb.co/b65QD9H/image.png"/>
</center>
Expand Down
11 changes: 11 additions & 0 deletions Waifu/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
using Microsoft.Extensions.Caching.Memory;
using Newtonsoft.Json;
using Serilog;
using Serilog.Core;
using Serilog.Events;
using Serilog.Extensions.Autofac.DependencyInjection;
using Serilog.Sinks.SystemConsole.Themes;
Expand Down Expand Up @@ -54,6 +55,16 @@ protected override void OnStartup(StartupEventArgs e)
).WriteTo.File(logPath)
.MinimumLevel.Information();

Application.Current.DispatcherUnhandledException += (sender, args) =>
{
Logger.None.Error($"{args.Exception.ToString()}");
};

AppDomain.CurrentDomain.UnhandledException += (sender, args) =>
{
Logger.None.Error($"{args.ExceptionObject.ToString()}");
};

//
// Log.Logger = logConfiguration
// .CreateLogger();
Expand Down
Loading

0 comments on commit 9ea4e0f

Please sign in to comment.