The Free Software Media System - Server Backend & API
Ensure log dir exists
Bond_00976d6b1fc2aa8
diff --git a/Jellyfin.Server/Program.cs b/Jellyfin.Server/Program.csindex 73c7a0c7cf..6f3c8c317b 100644--- a/Jellyfin.Server/Program.cs+++ b/Jellyfin.Server/Program.cs@@ -130,6 +130,8 @@ namespace Jellyfin.Serverstring logDir = Environment.GetEnvironmentVariable("JELLYFIN_LOG_DIR");if (string.IsNullOrEmpty(logDir)){logDir = Path.Combine(programDataPath, "logs");+ // Ensure logDir exists+ Directory.CreateDirectory(logDir);// $JELLYFIN_LOG_DIR needs to be set for the logger configuration managerEnvironment.SetEnvironmentVariable("JELLYFIN_LOG_DIR", logDir);}