aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2024-12-17 13:47:06 -0600
committerJP Dillingham <jp@dillingham.me>2024-12-17 13:47:06 -0600
commit7b0fb41b43fe7b97316fc7112cc9b6d0fc7f628d (patch)
treed116afd7f01949a8d6087724e618bbe2d3920512 /src
parent29a10ae1952dc0beb25703898f8157b8f4ed4302 (diff)
downloadslskd-7b0fb41b43fe7b97316fc7112cc9b6d0fc7f628d.tar.gz
add log override for EF
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Program.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/slskd/Program.cs b/src/slskd/Program.cs
index b302cc8c..f2c61b14 100644
--- a/src/slskd/Program.cs
+++ b/src/slskd/Program.cs
@@ -1024,6 +1024,7 @@ namespace slskd
.MinimumLevel.Override("System.Net.Http.HttpClient", OptionsAtStartup.Debug ? LogEventLevel.Warning : LogEventLevel.Fatal)
.MinimumLevel.Override("slskd.Authentication.PassthroughAuthenticationHandler", LogEventLevel.Warning)
.MinimumLevel.Override("slskd.Authentication.ApiKeyAuthenticationHandler", LogEventLevel.Warning)
+ .MinimumLevel.Override("Microsoft.EntityFrameworkCore.Database.Command", LogEventLevel.Warning) // bump this down to Information to show SQL
.Enrich.WithProperty("InstanceName", OptionsAtStartup.InstanceName)
.Enrich.WithProperty("InvocationId", InvocationId)
.Enrich.WithProperty("ProcessId", ProcessId)