mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-07 11:57:55 +02:00
commit
0c329736cc
1 changed files with 6 additions and 0 deletions
|
@ -84,6 +84,8 @@ namespace Jellyfin.Server
|
||||||
|
|
||||||
private static async Task StartApp(StartupOptions options)
|
private static async Task StartApp(StartupOptions options)
|
||||||
{
|
{
|
||||||
|
var stopWatch = new Stopwatch();
|
||||||
|
stopWatch.Start();
|
||||||
ServerApplicationPaths appPaths = CreateApplicationPaths(options);
|
ServerApplicationPaths appPaths = CreateApplicationPaths(options);
|
||||||
|
|
||||||
// $JELLYFIN_LOG_DIR needs to be set for the logger configuration manager
|
// $JELLYFIN_LOG_DIR needs to be set for the logger configuration manager
|
||||||
|
@ -168,6 +170,10 @@ namespace Jellyfin.Server
|
||||||
|
|
||||||
await appHost.RunStartupTasksAsync().ConfigureAwait(false);
|
await appHost.RunStartupTasksAsync().ConfigureAwait(false);
|
||||||
|
|
||||||
|
stopWatch.Stop();
|
||||||
|
|
||||||
|
_logger.LogInformation("Startup complete {Time:g}", stopWatch.Elapsed);
|
||||||
|
|
||||||
// Block main thread until shutdown
|
// Block main thread until shutdown
|
||||||
await Task.Delay(-1, _tokenSource.Token).ConfigureAwait(false);
|
await Task.Delay(-1, _tokenSource.Token).ConfigureAwait(false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue