2
0
Эх сурвалжийг харах

Fix startup logger log file order

theguymadmax 2 сар өмнө
parent
commit
3cf213c4fb

+ 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)