Clean client filename generation

This commit is contained in:
crobibero 2021-04-26 17:02:25 -06:00
parent 1d6224c9c6
commit f8cfc55a36

View File

@ -598,7 +598,7 @@ namespace Jellyfin.Server
"ClientName", "ClientName",
(clientName, wt) (clientName, wt)
=> wt.File( => wt.File(
Path.Combine(appPaths.LogDirectoryPath, $"log_{clientName}_.log"), Path.Combine(appPaths.LogDirectoryPath, clientName + "_.log"),
rollingInterval: RollingInterval.Day, rollingInterval: RollingInterval.Day,
outputTemplate: "{Message:l}{NewLine}{Exception}", outputTemplate: "{Message:l}{NewLine}{Exception}",
encoding: Encoding.UTF8)) encoding: Encoding.UTF8))
@ -623,7 +623,7 @@ namespace Jellyfin.Server
"ClientName", "ClientName",
(clientName, wt) (clientName, wt)
=> wt.File( => wt.File(
Path.Combine(appPaths.LogDirectoryPath, $"log_{clientName}_.log"), Path.Combine(appPaths.LogDirectoryPath, clientName + "_.log"),
rollingInterval: RollingInterval.Day, rollingInterval: RollingInterval.Day,
outputTemplate: "{Message:l}{NewLine}{Exception}", outputTemplate: "{Message:l}{NewLine}{Exception}",
encoding: Encoding.UTF8)) encoding: Encoding.UTF8))