From 2561b29cbad91782f09f2d34c4a230a7cc773797 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Wed, 29 Jun 2016 18:01:35 -0400 Subject: [PATCH] update entry point runner --- MediaBrowser.Server.Startup.Common/ApplicationHost.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/MediaBrowser.Server.Startup.Common/ApplicationHost.cs b/MediaBrowser.Server.Startup.Common/ApplicationHost.cs index 1d7b65e5f..4534677ca 100644 --- a/MediaBrowser.Server.Startup.Common/ApplicationHost.cs +++ b/MediaBrowser.Server.Startup.Common/ApplicationHost.cs @@ -330,18 +330,21 @@ namespace MediaBrowser.Server.Startup.Common HttpServer.GlobalResponse = null; PerformPostInitMigrations(); + Logger.Info("Post-init migrations complete"); - Parallel.ForEach(GetExports(), entryPoint => + foreach (var entryPoint in GetExports().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(); }