mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
add a log line for each assembly on startup
This commit is contained in:
parent
c320434719
commit
2d70f71a95
@ -162,10 +162,10 @@ namespace MediaBrowser.Common.Implementations
|
|||||||
|
|
||||||
Logger = LogManager.GetLogger("App");
|
Logger = LogManager.GetLogger("App");
|
||||||
|
|
||||||
DiscoverTypes();
|
|
||||||
|
|
||||||
LogManager.ReloadLogger(ConfigurationManager.CommonConfiguration.EnableDebugLevelLogging ? LogSeverity.Debug : LogSeverity.Info);
|
LogManager.ReloadLogger(ConfigurationManager.CommonConfiguration.EnableDebugLevelLogging ? LogSeverity.Debug : LogSeverity.Info);
|
||||||
|
|
||||||
|
DiscoverTypes();
|
||||||
|
|
||||||
Logger.Info("Version {0} initializing", ApplicationVersion);
|
Logger.Info("Version {0} initializing", ApplicationVersion);
|
||||||
|
|
||||||
Kernel = GetKernel();
|
Kernel = GetKernel();
|
||||||
@ -215,7 +215,14 @@ namespace MediaBrowser.Common.Implementations
|
|||||||
{
|
{
|
||||||
FailedAssemblies.Clear();
|
FailedAssemblies.Clear();
|
||||||
|
|
||||||
AllTypes = GetComposablePartAssemblies().SelectMany(GetTypes).ToArray();
|
var assemblies = GetComposablePartAssemblies().ToArray();
|
||||||
|
|
||||||
|
foreach (var assembly in assemblies)
|
||||||
|
{
|
||||||
|
Logger.Info("Loading {0}", assembly.FullName);
|
||||||
|
}
|
||||||
|
|
||||||
|
AllTypes = assemblies.SelectMany(GetTypes).ToArray();
|
||||||
|
|
||||||
AllConcreteTypes = AllTypes.Where(t => t.IsClass && !t.IsAbstract && !t.IsInterface && !t.IsGenericType).ToArray();
|
AllConcreteTypes = AllTypes.Where(t => t.IsClass && !t.IsAbstract && !t.IsInterface && !t.IsGenericType).ToArray();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user