Skip to content

The Free Software Media System - Server Backend & API

Clean client filename generation

crobiberof8cfc55a3678
diff --git a/Jellyfin.Server/Program.cs b/Jellyfin.Server/Program.cs
index b8d3ba2397..7a7e0a1cf5 100644
--- a/Jellyfin.Server/Program.cs
+++ b/Jellyfin.Server/Program.cs
@@ -598,7 +598,7 @@ namespace Jellyfin.Server
"ClientName",
(clientName, wt)
=> wt.File(
- Path.Combine(appPaths.LogDirectoryPath, $"log_{clientName}_.log"),
+ Path.Combine(appPaths.LogDirectoryPath, clientName + "_.log"),
rollingInterval: RollingInterval.Day,
outputTemplate: "{Message:l}{NewLine}{Exception}",
encoding: Encoding.UTF8))
@@ -623,7 +623,7 @@ namespace Jellyfin.Server
"ClientName",
(clientName, wt)
=> wt.File(
- Path.Combine(appPaths.LogDirectoryPath, $"log_{clientName}_.log"),
+ Path.Combine(appPaths.LogDirectoryPath, clientName + "_.log"),
rollingInterval: RollingInterval.Day,
outputTemplate: "{Message:l}{NewLine}{Exception}",
encoding: Encoding.UTF8))