mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-05-24 02:02:29 -04:00
simplified logfile path
This commit is contained in:
parent
7735aafef5
commit
963f2357a9
@ -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);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user