From 4a6bca20bc27e40c38394a2807436f23450166db Mon Sep 17 00:00:00 2001 From: cswimr Date: Tue, 31 Dec 2024 19:02:22 -0500 Subject: [PATCH] feat: add sentry --- Program.cs | 6 ++++++ ZenithInfo.csproj | 1 + 2 files changed, 7 insertions(+) diff --git a/Program.cs b/Program.cs index 7cf3ccb..655500f 100644 --- a/Program.cs +++ b/Program.cs @@ -16,6 +16,12 @@ if (config?.GlobalToken == "CHANGE-ME") ); } +// Sentry +if (config?.UseSentry == true) +{ + builder.WebHost.UseSentry(); +} + // Add services to the container. builder.Services.AddRazorComponents().AddInteractiveServerComponents(); builder.Services.AddHttpLogging(o => { }); diff --git a/ZenithInfo.csproj b/ZenithInfo.csproj index f9b56fa..d486ac3 100644 --- a/ZenithInfo.csproj +++ b/ZenithInfo.csproj @@ -10,6 +10,7 @@ +