+
+
+ {{^IF isInReportingMode}}
+ Jellyfin Server still starting. Please wait.
+ {{#ELSE}}
+ Jellyfin Server has encountered an error and was not able to start.
+ {{/ELSE}}
+ {{/IF}}
+
+ {{#IF localNetworkRequest}}
+ You can download the current log file here.
+ {{/IF}}
+
+
+ {{#DECLARE LogEntry |--}}
+ {{#LET children = Children}}
+
+ {{--| #IF children.Count > 0}}
+
+ {{DateOfCreation}} - {{Content}}
+
+ {{--| #EACH children.Reverse() |-}}
+ {{#IMPORT 'LogEntry'}}
+ {{--| /EACH |-}}
+
+
+ {{--| #ELSE |-}}
+ {{DateOfCreation}} - {{Content}}
+ {{--| /ELSE |--}}
+ {{--| /IF |-}}
+
+ {{--| /DECLARE}}
+
+
+
+ {{#FOREACH log IN logs.Reverse()}}
+ {{#IMPORT 'LogEntry' #WITH log}}
+ {{/FOREACH}}
+
+
+
+
+
+{{^IF isInReportingMode}}
+
+{{/IF}}
+
+
diff --git a/tests/Jellyfin.Server.Integration.Tests/JellyfinApplicationFactory.cs b/tests/Jellyfin.Server.Integration.Tests/JellyfinApplicationFactory.cs
index b2cde2aabc..725e359d7d 100644
--- a/tests/Jellyfin.Server.Integration.Tests/JellyfinApplicationFactory.cs
+++ b/tests/Jellyfin.Server.Integration.Tests/JellyfinApplicationFactory.cs
@@ -5,6 +5,7 @@ using System.IO;
using Emby.Server.Implementations;
using Jellyfin.Server.Extensions;
using Jellyfin.Server.Helpers;
+using Jellyfin.Server.ServerSetupApp;
using MediaBrowser.Common;
using MediaBrowser.Common.Configuration;
using Microsoft.AspNetCore.Hosting;
@@ -16,6 +17,7 @@ using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Logging.Abstractions;
using Moq;
using Serilog;
+using Serilog.Core;
using Serilog.Extensions.Logging;
namespace Jellyfin.Server.Integration.Tests
@@ -95,7 +97,8 @@ namespace Jellyfin.Server.Integration.Tests
.AddInMemoryCollection(ConfigurationOptions.DefaultConfiguration)
.AddEnvironmentVariables("JELLYFIN_")
.AddInMemoryCollection(commandLineOpts.ConvertToConfig());
- });
+ })
+ .ConfigureServices(e => e.AddSingleton