Skip to content

Commit

Permalink
Merge pull request #223 from peppy/no-sentry-for-debug
Browse files Browse the repository at this point in the history
Don't use sentry when running in debug mode
  • Loading branch information
smoogipoo authored Feb 28, 2024
2 parents 7ae4bc3 + 71c2150 commit cc1d36d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions osu.Server.Spectator/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ private static IHostBuilder createHostBuilder(string[] args)
return Host.CreateDefaultBuilder(args)
.ConfigureWebHostDefaults(webBuilder =>
{
#if !DEBUG
webBuilder.UseSentry(o =>
{
o.AddExceptionFilterForType<HubException>();
o.TracesSampleRate = 0.01;
#if !DEBUG
o.Dsn = "https://[email protected]/8";
#endif
// TODO: set release name
});
#endif

#if DEBUG
webBuilder.UseStartup<StartupDevelopment>();
Expand Down
2 changes: 2 additions & 0 deletions osu.Server.Spectator/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ public void ConfigureServices(IServiceCollection services)

logging.ClearProviders();
logging.AddConsole();
#if !DEBUG
logging.AddSentry();
#endif

// IdentityModelEventSource.ShowPII = true;
});
Expand Down

0 comments on commit cc1d36d

Please sign in to comment.