Skip to content

Commit

Permalink
Untagle logs and speed up search (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
SaphireLattice authored Aug 21, 2024
1 parent 95add8e commit 8620bb0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions ReplayBrowser/Helpers/ReplayHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -393,8 +393,6 @@ public async Task<SearchResult> SearchReplays(List<SearchQueryItem> searchItems,

var queryable = _context.Replays
.AsNoTracking()
.Include(r => r.RoundParticipants!)
.ThenInclude(r => r.Players)
.AsQueryable();

foreach (var searchItem in searchItems)
Expand Down
4 changes: 0 additions & 4 deletions ReplayBrowser/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ public void ConfigureServices(IServiceCollection services)
options.JsonSerializerOptions.ReferenceHandler = ReferenceHandler.IgnoreCycles;
});

var loggerFactory = LoggerFactory.Create(builder => builder.AddConsole().AddSerilog());
services.AddSingleton<ILoggerFactory>(loggerFactory);

services.AddDbContext<ReplayDbContext>(options =>
{
if (Configuration.GetConnectionString("DefaultConnection") == null)
Expand All @@ -54,7 +51,6 @@ public void ConfigureServices(IServiceCollection services)
options.UseNpgsql(Configuration.GetConnectionString("DefaultConnection"), o => o.CommandTimeout(600));

options.EnableSensitiveDataLogging();
options.UseLoggerFactory(loggerFactory);
});

services.AddSingleton<Ss14ApiHelper>();
Expand Down

0 comments on commit 8620bb0

Please sign in to comment.