Skip to content

The Free Software Media System - Server Backend & API

Merge remote-tracking branch 'upstream/master' into support-injecting-iconfiguration

Mark Monteiro76957213e601
diff --cc Emby.Server.Implementations/ApplicationHost.cs
index eee32520f0,679ef4851e..5b8dc5b734
--- a/Emby.Server.Implementations/ApplicationHost.cs
+++ b/Emby.Server.Implementations/ApplicationHost.cs
@@@ -664,11 -668,12 +664,10 @@@ namespace Emby.Server.Implementation
serviceCollection.AddSingleton<IApplicationPaths>(ApplicationPaths);
- serviceCollection.AddSingleton<IConfiguration>(_configuration);
-
serviceCollection.AddSingleton(JsonSerializer);
- serviceCollection.AddSingleton(LoggerFactory);
- serviceCollection.AddLogging();
- serviceCollection.AddSingleton(Logger);
+ // TODO: Support for injecting ILogger should be deprecated in favour of ILogger<T> and this removed
+ serviceCollection.AddSingleton<ILogger>(Logger);
serviceCollection.AddSingleton(FileSystemManager);
serviceCollection.AddSingleton<TvDbClientManager>();
diff --cc Jellyfin.Server/Program.cs
index 7ac3b0efb4,484e507a23..24e4ee520e
--- a/Jellyfin.Server/Program.cs
+++ b/Jellyfin.Server/Program.cs
@@@ -261,7 -261,7 +262,8 @@@ namespace Jellyfin.Serve
}
}
})
+ .ConfigureAppConfiguration(config => config.ConfigureAppConfiguration(appPaths))
+ .UseSerilog()
.UseContentRoot(appHost.ContentRoot)
.ConfigureServices(services =>
{