Update sentry

pull/1032/head
ta264 4 years ago
parent 85f93eba98
commit 222236bbde

@ -36,7 +36,7 @@
<PackageVersion Include="RestSharp" Version="106.11.7" /> <PackageVersion Include="RestSharp" Version="106.11.7" />
<PackageVersion Include="Selenium.Support" Version="3.141.0" /> <PackageVersion Include="Selenium.Support" Version="3.141.0" />
<PackageVersion Include="Selenium.WebDriver.ChromeDriver" Version="90.0.4430.2400" /> <PackageVersion Include="Selenium.WebDriver.ChromeDriver" Version="90.0.4430.2400" />
<PackageVersion Include="Sentry" Version="2.1.8" /> <PackageVersion Include="Sentry" Version="3.3.4" />
<PackageVersion Include="SharpZipLib" Version="1.3.2" /> <PackageVersion Include="SharpZipLib" Version="1.3.2" />
<PackageVersion Include="SixLabors.ImageSharp" Version="1.0.3" /> <PackageVersion Include="SixLabors.ImageSharp" Version="1.0.3" />
<PackageVersion Include="StyleCop.Analyzers" Version="1.1.118" /> <PackageVersion Include="StyleCop.Analyzers" Version="1.1.118" />

@ -11,7 +11,7 @@ namespace NzbDrone.Common.Instrumentation.Sentry
{ {
try try
{ {
sentryEvent.Message = CleanseLogMessage.Cleanse(sentryEvent.Message); sentryEvent.Message.Message = CleanseLogMessage.Cleanse(sentryEvent.Message.Message);
if (sentryEvent.Fingerprint != null) if (sentryEvent.Fingerprint != null)
{ {

@ -102,12 +102,12 @@ namespace NzbDrone.Common.Instrumentation.Sentry
{ {
_sdk = SentrySdk.Init(o => _sdk = SentrySdk.Init(o =>
{ {
o.Dsn = new Dsn(dsn); o.Dsn = dsn;
o.AttachStacktrace = true; o.AttachStacktrace = true;
o.MaxBreadcrumbs = 200; o.MaxBreadcrumbs = 200;
o.SendDefaultPii = false; o.SendDefaultPii = false;
o.Debug = false; o.Debug = false;
o.DiagnosticsLevel = SentryLevel.Debug; o.DiagnosticLevel = SentryLevel.Debug;
o.Release = BuildInfo.Release; o.Release = BuildInfo.Release;
if (PlatformInfo.IsMono) if (PlatformInfo.IsMono)
{ {

Loading…
Cancel
Save