fix(bot): allow empty sentry url

This commit is contained in:
alyssa 2024-10-22 05:50:11 +09:00
parent c639d877f8
commit f427d4d727

View file

@ -42,7 +42,7 @@ public class Init
using var _ = SentrySdk.Init(opts => using var _ = SentrySdk.Init(opts =>
{ {
opts.Dsn = services.Resolve<CoreConfig>().SentryUrl; opts.Dsn = services.Resolve<CoreConfig>().SentryUrl ?? "";
opts.Release = BuildInfoService.FullVersion; opts.Release = BuildInfoService.FullVersion;
opts.AutoSessionTracking = true; opts.AutoSessionTracking = true;
// opts.DisableTaskUnobservedTaskExceptionCapture(); // opts.DisableTaskUnobservedTaskExceptionCapture();