Skip to content

Commit

Permalink
Revert changes
Browse files Browse the repository at this point in the history
  • Loading branch information
i-vukman committed Sep 21, 2023
1 parent 9f53e8f commit 8849947
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions src/AnagramSolver/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,7 @@

var builder = WebApplication.CreateBuilder(args);
builder.WebHost.UseShutdownTimeout(TimeSpan.FromSeconds(55));
builder.WebHost.UseSentry(options =>
{
options.SetBeforeSend((sentryEvent, hint) =>
{
if (sentryEvent.Exception != null &&
(sentryEvent.Exception is BusinessRuleViolationException || sentryEvent.Exception is UniqueConstraintException))
{
return null; // Don't send this event to Sentry
}
return sentryEvent;
});
});
builder.WebHost.UseSentry();

// Add services to the container.

Expand Down

0 comments on commit 8849947

Please sign in to comment.