From 29cc25c6478886fa503f906a5e5176314460056a Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Tue, 28 May 2019 16:13:36 +0800 Subject: [PATCH] feat(Sentry): add exception monitoring feature #Comment comment Sentry.AspNetCore --- Bootstrap.Admin/Bootstrap.Admin.csproj | 1 + Bootstrap.Admin/Program.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Bootstrap.Admin/Bootstrap.Admin.csproj b/Bootstrap.Admin/Bootstrap.Admin.csproj index 6c1efb32..d4a3305d 100644 --- a/Bootstrap.Admin/Bootstrap.Admin.csproj +++ b/Bootstrap.Admin/Bootstrap.Admin.csproj @@ -19,6 +19,7 @@ + diff --git a/Bootstrap.Admin/Program.cs b/Bootstrap.Admin/Program.cs index 0c86ce36..f1656129 100644 --- a/Bootstrap.Admin/Program.cs +++ b/Bootstrap.Admin/Program.cs @@ -22,6 +22,6 @@ namespace Bootstrap.Admin /// /// public static IWebHostBuilder CreateWebHostBuilder(string[] args) => - WebHost.CreateDefaultBuilder(args).UseStartup(); + WebHost.CreateDefaultBuilder(args).UseSentry("https://70bdfff562e84fa7b9a43d65924ab9ad@sentry.io/1469396").UseStartup(); } }