aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server
diff options
context:
space:
mode:
authorJPVenson <github@jpb.software>2025-02-21 11:06:28 +0000
committerJPVenson <github@jpb.software>2025-02-21 11:06:28 +0000
commit963f2357a966dd7a5a6ab248155cc52ce066753b (patch)
tree67e58dd4f705455ccda184029852cb0a4289b484 /Jellyfin.Server
parent7735aafef5908f2d15f6dc2b3da3bb3795fd83d2 (diff)
simplified logfile path
Diffstat (limited to 'Jellyfin.Server')
-rw-r--r--Jellyfin.Server/ServerSetupApp/SetupServer.cs10
1 files changed, 7 insertions, 3 deletions
diff --git a/Jellyfin.Server/ServerSetupApp/SetupServer.cs b/Jellyfin.Server/ServerSetupApp/SetupServer.cs
index 09b7434ef..9e2cf5bc8 100644
--- a/Jellyfin.Server/ServerSetupApp/SetupServer.cs
+++ b/Jellyfin.Server/ServerSetupApp/SetupServer.cs
@@ -64,10 +64,14 @@ public sealed class SetupServer : IDisposable
return;
}
- var logfilePath = Directory.EnumerateFiles(applicationPaths.LogDirectoryPath).Select(e => new FileInfo(e)).OrderBy(f => f.CreationTimeUtc).FirstOrDefault()?.FullName;
- if (logfilePath is not null)
+ var logFilePath = new DirectoryInfo(applicationPaths.LogDirectoryPath)
+ .EnumerateFiles()
+ .OrderBy(f => f.CreationTimeUtc)
+ .FirstOrDefault()
+ ?.FullName;
+ if (logFilePath is not null)
{
- await context.Response.SendFileAsync(logfilePath, CancellationToken.None).ConfigureAwait(false);
+ await context.Response.SendFileAsync(logFilePath, CancellationToken.None).ConfigureAwait(false);
}
});
});