diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-06-29 18:01:35 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-06-29 18:01:35 -0400 |
| commit | 2561b29cbad91782f09f2d34c4a230a7cc773797 (patch) | |
| tree | c5c391b1affbdd4b81ee6dcddd0f71e73ab5ee67 | |
| parent | 24592a2b0ae035d1241e5c6cc0ae68da2fbec7dc (diff) | |
update entry point runner
| -rw-r--r-- | MediaBrowser.Server.Startup.Common/ApplicationHost.cs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/MediaBrowser.Server.Startup.Common/ApplicationHost.cs b/MediaBrowser.Server.Startup.Common/ApplicationHost.cs index 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.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(); } |
