Skip to content

Commit 49a097e

Browse files
committed
refactor: remove PendingModelChangesWarning suppression in production environment
1 parent 173226c commit 49a097e

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

Services/ConduitLLM.Admin/Extensions/CoreExtensions.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,6 @@ public static IServiceCollection AddCoreServices(this IServiceCollection service
5353
services.AddDbContextFactory<ConduitLLM.Configuration.ConduitDbContext>(options =>
5454
{
5555
options.UseNpgsql(dbConnectionString);
56-
// Suppress PendingModelChangesWarning in production
57-
var environment = Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT") ?? "Production";
58-
if (environment == "Production")
59-
{
60-
options.ConfigureWarnings(warnings => warnings.Ignore(Microsoft.EntityFrameworkCore.Diagnostics.RelationalEventId.PendingModelChangesWarning));
61-
}
6256
});
6357

6458
// Also add scoped registration from factory for services that need direct injection

0 commit comments

Comments
 (0)