From 87e2f5f414fe6989ae29108de7094e44249dc0f3 Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Mon, 9 Sep 2024 19:02:45 +0900 Subject: [PATCH] Add migration logs --- BTCPayServer.Tests/BTCPayServerTester.cs | 1 + BTCPayServer/Program.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/BTCPayServer.Tests/BTCPayServerTester.cs b/BTCPayServer.Tests/BTCPayServerTester.cs index faac5cd20..d8b54386e 100644 --- a/BTCPayServer.Tests/BTCPayServerTester.cs +++ b/BTCPayServer.Tests/BTCPayServerTester.cs @@ -178,6 +178,7 @@ namespace BTCPayServer.Tests l.SetMinimumLevel(LogLevel.Information) .AddFilter("Microsoft", LogLevel.Error) .AddFilter("Hangfire", LogLevel.Error) + .AddFilter("Microsoft.EntityFrameworkCore.Migrations", LogLevel.Information) .AddFilter("Fido2NetLib.DistributedCacheMetadataService", LogLevel.Error) .AddProvider(LoggerProvider); }); diff --git a/BTCPayServer/Program.cs b/BTCPayServer/Program.cs index e31696887..5969d8c2e 100644 --- a/BTCPayServer/Program.cs +++ b/BTCPayServer/Program.cs @@ -61,6 +61,7 @@ namespace BTCPayServer l.AddFilter("Events", LogLevel.Warning); // Uncomment this to see EF queries //l.AddFilter("Microsoft.EntityFrameworkCore.Database.Command", LogLevel.Trace); + l.AddFilter("Microsoft.EntityFrameworkCore.Migrations", LogLevel.Information); l.AddFilter("System.Net.Http.HttpClient", LogLevel.Critical); l.AddFilter("Microsoft.AspNetCore.Antiforgery.Internal", LogLevel.Critical); l.AddFilter("Fido2NetLib.DistributedCacheMetadataService", LogLevel.Error);