Skip to content

Commit

Permalink
Don't log queries on Release
Browse files Browse the repository at this point in the history
  • Loading branch information
Simyon264 committed Aug 21, 2024
1 parent effde3a commit 10eb809
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ReplayBrowser/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,10 @@ public void ConfigureServices(IServiceCollection services)

options.UseNpgsql(Configuration.GetConnectionString("DefaultConnection"));

#if DEBUG
options.EnableSensitiveDataLogging();
options.UseLoggerFactory(LoggerFactory.Create(builder => builder.AddConsole().AddSerilog()));
options.UseLoggerFactory(LoggerFactory.Create(builder => builder.AddConsole().AddSerilog()));
#endif
});

// Run migrations on startup.
Expand Down

0 comments on commit 10eb809

Please sign in to comment.