Update logging configuration to set Microsoft.EntityFrameworkCore.Database.Command level to Error
This commit is contained in:
@@ -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" ]
|
||||||
|
|||||||
@@ -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": [
|
||||||
|
|||||||
Reference in New Issue
Block a user