diff options
| author | dkanada <dkanada@users.noreply.github.com> | 2019-10-09 22:19:49 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-09 22:19:49 +0900 |
| commit | 0c329736ccf74490f007d5c24b4d2cd7b4710394 (patch) | |
| tree | d7f2b20ce74026014a843f77163ff6c4345d2986 /Jellyfin.Server/Program.cs | |
| parent | cadfd5bf3ff9f9f20af05a22ed1bd0b10fa8ea86 (diff) | |
| parent | 1745f0181c0fdb4119c072f45bcfeb3af7b9132b (diff) | |
Merge pull request #1853 from Bond-009/startup
Log startup time
Diffstat (limited to 'Jellyfin.Server/Program.cs')
| -rw-r--r-- | Jellyfin.Server/Program.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Jellyfin.Server/Program.cs b/Jellyfin.Server/Program.cs index 6f1c111c6..3ab19769a 100644 --- a/Jellyfin.Server/Program.cs +++ b/Jellyfin.Server/Program.cs @@ -84,6 +84,8 @@ namespace Jellyfin.Server private static async Task StartApp(StartupOptions options) { + var stopWatch = new Stopwatch(); + stopWatch.Start(); ServerApplicationPaths appPaths = CreateApplicationPaths(options); // $JELLYFIN_LOG_DIR needs to be set for the logger configuration manager @@ -168,6 +170,10 @@ namespace Jellyfin.Server await appHost.RunStartupTasksAsync().ConfigureAwait(false); + stopWatch.Stop(); + + _logger.LogInformation("Startup complete {Time:g}", stopWatch.Elapsed); + // Block main thread until shutdown await Task.Delay(-1, _tokenSource.Token).ConfigureAwait(false); } |
