mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-11-03 19:17:24 -05:00 
			
		
		
		
	Log startup time
This commit is contained in:
		
							parent
							
								
									3249fbb715
								
							
						
					
					
						commit
						1745f0181c
					
				@ -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);
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user