Update logging configuration to set Microsoft.EntityFrameworkCore.Database.Command level to Error

This commit is contained in:
2026-07-08 15:17:19 -04:00
parent 2415f288f7
commit 4e6bf45701
2 changed files with 2 additions and 28 deletions
@@ -5,7 +5,7 @@
"Override": { "Override": {
"Microsoft": "Warning", "Microsoft": "Warning",
"System": "Warning", "System": "Warning",
"Microsoft.EntityFrameworkCore.Database.Command": "Information" "Microsoft.EntityFrameworkCore.Database.Command": "Error"
} }
}, },
"WriteTo": [ "WriteTo": [
@@ -32,32 +32,6 @@
} }
] ]
} }
},
{
"Name": "Async",
"Args": {
"configure": [
{
"Name": "File",
"Args": {
"path": "%JELLYFIN_LOG_DIR%//sql_.log",
"rollingInterval": "Day",
"retainedFileCountLimit": 3,
"rollOnFileSizeLimit": true,
"fileSizeLimitBytes": 100000000,
"outputTemplate": "[{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz}] [{Level:u3}] [{ThreadId}] {SourceContext}: {Message}{NewLine}{Exception}"
}
}
]
},
"Filter": [
{
"Name": "ByIncludingOnly",
"Args": {
"expression": "SourceContext = 'Microsoft.EntityFrameworkCore.Database.Command'"
}
}
]
} }
], ],
"Enrich": [ "FromLogContext", "WithThreadId" ] "Enrich": [ "FromLogContext", "WithThreadId" ]
+1 -1
View File
@@ -5,7 +5,7 @@
"Override": { "Override": {
"Microsoft": "Warning", "Microsoft": "Warning",
"System": "Warning", "System": "Warning",
"Microsoft.EntityFrameworkCore.Database.Command": "Information" "Microsoft.EntityFrameworkCore.Database.Command": "Error"
} }
}, },
"WriteTo": [ "WriteTo": [