Skip to content

Commit

Permalink
Fix memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
jonashendrickx committed May 12, 2024
1 parent 1146ccc commit 9b02814
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
5 changes: 0 additions & 5 deletions src/AdminConsole/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,6 @@ void RunTheApp()
.Enrich.WithEnvironmentName()
.WriteTo.Console();

if (builder.Environment.IsDevelopment())
{
config.WriteTo.Seq("http://localhost:5341");
}

var ddApiKey = Environment.GetEnvironmentVariable("DD_API_KEY");
if (!string.IsNullOrEmpty(ddApiKey))
{
Expand Down
11 changes: 1 addition & 10 deletions src/Api/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,6 @@
.Enrich.WithEnvironmentName()
.WriteTo.Console();

if (builder.Environment.IsDevelopment())
{
config.WriteTo.Seq("http://localhost:5341");
}

var ddApiKey = Environment.GetEnvironmentVariable("DD_API_KEY");
if (!string.IsNullOrEmpty(ddApiKey))
{
Expand All @@ -95,11 +90,7 @@
configuration: ddConfig);
}
}
},
false,
// Pass log events down to other logging providers (e.g. Microsoft) after Serilog, so
// that they can be processed in a uniform way in tests.
true
}
);

var services = builder.Services;
Expand Down

0 comments on commit 9b02814

Please sign in to comment.