diff options
| author | Cody Robibero <cody@robibe.ro> | 2025-06-16 18:32:29 -0600 |
|---|---|---|
| committer | Cody Robibero <cody@robibe.ro> | 2025-06-16 18:32:29 -0600 |
| commit | 7256c9c89dc0d54b805658ef166ab1c3adb67d4f (patch) | |
| tree | 98dfe349a3d8136ed80636ad84f699e0a0c13507 /Jellyfin.Server | |
| parent | 0fc8ed6aeb5eed4efc0716c129d0590ddb5c8345 (diff) | |
Fix startup logger, startup health check
Diffstat (limited to 'Jellyfin.Server')
| -rw-r--r-- | Jellyfin.Server/ServerSetupApp/SetupServer.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Jellyfin.Server/ServerSetupApp/SetupServer.cs b/Jellyfin.Server/ServerSetupApp/SetupServer.cs index 53e63f0f7..92e012940 100644 --- a/Jellyfin.Server/ServerSetupApp/SetupServer.cs +++ b/Jellyfin.Server/ServerSetupApp/SetupServer.cs @@ -19,7 +19,6 @@ using MediaBrowser.Model.System; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; -using Microsoft.AspNetCore.HttpOverrides; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Diagnostics.HealthChecks; @@ -29,6 +28,8 @@ using Microsoft.Extensions.Primitives; using Morestachio; using Morestachio.Framework.IO.SingleStream; using Morestachio.Rendering; +using Serilog; +using ILogger = Microsoft.Extensions.Logging.ILogger; namespace Jellyfin.Server.ServerSetupApp; @@ -143,8 +144,10 @@ public sealed class SetupServer : IDisposable var config = _configurationManager.GetNetworkConfiguration()!; _startupServer = Host.CreateDefaultBuilder(["hostBuilder:reloadConfigOnChange=false"]) .UseConsoleLifetime() + .UseSerilog() .ConfigureServices(serv => { + serv.AddSingleton(this); serv.AddHealthChecks() .AddCheck<SetupHealthcheck>("StartupCheck"); serv.Configure<ForwardedHeadersOptions>(options => |
