Skip to content
This repository has been archived by the owner on Apr 3, 2023. It is now read-only.

Commit

Permalink
disable reporting on unobserved task exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
aspriddell committed Feb 17, 2023
1 parent 1f40bad commit 2dda61e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions DragonFruit.Six.Client/Dragon6ServiceExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
using Markdig;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
using Sentry;
using Serilog;
using Serilog.Core;
using Serilog.Events;
Expand Down Expand Up @@ -90,6 +91,8 @@ private static Logger CreateLogger()
s.MaxBreadcrumbs = 50;
s.MinimumEventLevel = LogEventLevel.Error;
s.MinimumBreadcrumbLevel = LogEventLevel.Debug;

s.DisableUnobservedTaskExceptionCapture();
});

config.WriteTo.Console(theme: AnsiConsoleTheme.Literate);
Expand Down

0 comments on commit 2dda61e

Please sign in to comment.