Skip to content

Commit eb1c2f5

Browse files
committed
Try to capture all exceptions through Sentry
No exceptions are being logged through Sentry, so be more aggressive when sending exceptions
1 parent 4fc73c1 commit eb1c2f5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

MinecraftClient/Program.cs

+5
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@ static void Main(string[] args)
7474
options.EnableTracing = true;
7575
options.SendDefaultPii = false;
7676
});
77+
78+
AppDomain.CurrentDomain.UnhandledException += (sender, eventArgs) =>
79+
{
80+
SentrySdk.CaptureException((Exception)eventArgs.ExceptionObject);
81+
};
7782
}
7883

7984
Task.Run(() =>

0 commit comments

Comments
 (0)