Skip to content

Commit 9ea4e0f

Browse files
committed
πŸ› hopefully fixed chromium not running
1 parent 19824ed commit 9ea4e0f

File tree

4 files changed

+179
-167
lines changed

4 files changed

+179
-167
lines changed

β€ŽREADME.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ By harnessing the power of the current technologies we have, we can turn the voi
2525
- Elevenlabs key, you can find it [here](https://beta.elevenlabs.io/subscription).
2626

2727

28-
<div>
28+
<div align="center">
2929
<center>
3030
<img align="center" src="https://i.ibb.co/b65QD9H/image.png"/>
3131
</center>

β€ŽWaifu/App.xaml.cs

+11
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
using Microsoft.Extensions.Caching.Memory;
1010
using Newtonsoft.Json;
1111
using Serilog;
12+
using Serilog.Core;
1213
using Serilog.Events;
1314
using Serilog.Extensions.Autofac.DependencyInjection;
1415
using Serilog.Sinks.SystemConsole.Themes;
@@ -54,6 +55,16 @@ protected override void OnStartup(StartupEventArgs e)
5455
).WriteTo.File(logPath)
5556
.MinimumLevel.Information();
5657

58+
Application.Current.DispatcherUnhandledException += (sender, args) =>
59+
{
60+
Logger.None.Error($"{args.Exception.ToString()}");
61+
};
62+
63+
AppDomain.CurrentDomain.UnhandledException += (sender, args) =>
64+
{
65+
Logger.None.Error($"{args.ExceptionObject.ToString()}");
66+
};
67+
5768
//
5869
// Log.Logger = logConfiguration
5970
// .CreateLogger();

0 commit comments

Comments
Β (0)