The Free Software Media System - Server Backend & API
update entry point runner
Luke Pulverenti2561b29cbad9
diff --git a/MediaBrowser.Server.Startup.Common/ApplicationHost.cs b/MediaBrowser.Server.Startup.Common/ApplicationHost.csindex 1d7b65e5f1..4534677ca2 100644--- a/MediaBrowser.Server.Startup.Common/ApplicationHost.cs+++ b/MediaBrowser.Server.Startup.Common/ApplicationHost.cs@@ -330,18 +330,21 @@ namespace MediaBrowser.Server.Startup.CommonHttpServer.GlobalResponse = null;PerformPostInitMigrations();+ Logger.Info("Post-init migrations complete");- Parallel.ForEach(GetExports<IServerEntryPoint>(), entryPoint =>+ foreach (var entryPoint in GetExports<IServerEntryPoint>().ToList()){+ var name = entryPoint.GetType().FullName;try{entryPoint.Run();}catch (Exception ex){- Logger.ErrorException("Error in {0}", ex, entryPoint.GetType().FullName);+ Logger.ErrorException("Error in {0}", ex, name);}- });+ }+ Logger.Info("Entry points complete");LogManager.RemoveConsoleOutput();}