aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2016-06-29 18:08:38 -0400
committerGitHub <noreply@github.com>2016-06-29 18:08:38 -0400
commit07ef2479eb6f1943c500976f02637fb71d08b0db (patch)
tree28c081275a3e0e9e0509b2ce8aa873aa60472c74
parent0725e4193b2ec6b60d2437a2d7994822d46d6192 (diff)
parent2561b29cbad91782f09f2d34c4a230a7cc773797 (diff)
Merge pull request #1892 from MediaBrowser/dev
update entry point runner
-rw-r--r--MediaBrowser.Server.Startup.Common/ApplicationHost.cs9
1 files 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<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();
}