1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-03 17:12:49 -05:00

Use correct sentry integration package. Fixes #669 (#670)

This commit is contained in:
David Roth
2020-03-16 13:25:46 +01:00
committed by GitHub
parent 287054c6e7
commit b7b06d77df
2 changed files with 2 additions and 8 deletions

View File

@ -22,10 +22,6 @@ namespace Bit.Core.Utilities
return;
}
if(CoreHelpers.SettingHasValue(globalSettings?.Sentry.Dsn))
{
appBuilder.AddSentryContext();
}
applicationLifetime.ApplicationStopped.Register(Log.CloseAndFlush);
}
@ -72,9 +68,7 @@ namespace Bit.Core.Utilities
{
config.WriteTo.Sentry(globalSettings.Sentry.Dsn)
.Enrich.FromLogContext()
.Enrich.WithProperty("Project", globalSettings.ProjectName)
.Destructure.With<HttpContextDestructingPolicy>()
.Filter.ByExcluding(e => e.Exception?.CheckIfCaptured() == true);
.Enrich.WithProperty("Project", globalSettings.ProjectName);
}
else if(CoreHelpers.SettingHasValue(globalSettings.LogDirectory))
{