fix: don't spam Sentry with caught exceptions

This commit is contained in:
spiral 2021-11-11 06:31:12 -05:00
parent f7b48ab30d
commit cb38b6809d
No known key found for this signature in database
GPG Key ID: A6059F0CA0E1BD31

View File

@ -44,6 +44,7 @@ namespace PluralKit.Bot
opts.Dsn = services.Resolve<CoreConfig>().SentryUrl;
opts.Release = BuildInfoService.FullVersion;
opts.AutoSessionTracking = true;
opts.DisableTaskUnobservedTaskExceptionCapture();
});
// "Connect to the database" (ie. set off database migrations and ensure state)