Browse Source

Merge pull request #14044 from theguymadmax/fix-log-file

Fix startup logger log file order
Niels van Velzen 1 month ago
parent
commit
dbedb9096b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Jellyfin.Server/ServerSetupApp/SetupServer.cs

+ 1 - 1
Jellyfin.Server/ServerSetupApp/SetupServer.cs

@@ -113,7 +113,7 @@ public sealed class SetupServer : IDisposable
 
 
                                             var logFilePath = new DirectoryInfo(_applicationPaths.LogDirectoryPath)
                                             var logFilePath = new DirectoryInfo(_applicationPaths.LogDirectoryPath)
                                                 .EnumerateFiles()
                                                 .EnumerateFiles()
-                                                .OrderBy(f => f.CreationTimeUtc)
+                                                .OrderByDescending(f => f.CreationTimeUtc)
                                                 .FirstOrDefault()
                                                 .FirstOrDefault()
                                                 ?.FullName;
                                                 ?.FullName;
                                             if (logFilePath is not null)
                                             if (logFilePath is not null)