Merge pull request #1892 from MediaBrowser/dev

update entry point runner
pull/702/head
Luke 8 years ago committed by GitHub
commit 07ef2479eb

@ -330,18 +330,21 @@ namespace MediaBrowser.Server.Startup.Common
HttpServer.GlobalResponse = null; HttpServer.GlobalResponse = null;
PerformPostInitMigrations(); 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 try
{ {
entryPoint.Run(); entryPoint.Run();
} }
catch (Exception ex) 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(); LogManager.RemoveConsoleOutput();
} }

Loading…
Cancel
Save