From cb38b6809dec365976e72e092d07e55b185fa13f Mon Sep 17 00:00:00 2001 From: spiral Date: Thu, 11 Nov 2021 06:31:12 -0500 Subject: [PATCH] fix: don't spam Sentry with caught exceptions --- PluralKit.Bot/Init.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/PluralKit.Bot/Init.cs b/PluralKit.Bot/Init.cs index 3b44c46c..a1e3d54e 100644 --- a/PluralKit.Bot/Init.cs +++ b/PluralKit.Bot/Init.cs @@ -44,6 +44,7 @@ namespace PluralKit.Bot opts.Dsn = services.Resolve().SentryUrl; opts.Release = BuildInfoService.FullVersion; opts.AutoSessionTracking = true; + opts.DisableTaskUnobservedTaskExceptionCapture(); }); // "Connect to the database" (ie. set off database migrations and ensure state)