improved messages with startup failures

This commit is contained in:
Luke Pulverenti
2013-09-20 11:37:05 -04:00
parent a2fb45ba8e
commit 755d98edc0
5 changed files with 38 additions and 33 deletions

View File

@@ -1,4 +1,5 @@
using MediaBrowser.Api;
using System.Windows.Forms;
using MediaBrowser.Api;
using MediaBrowser.Common;
using MediaBrowser.Common.Configuration;
using MediaBrowser.Common.Constants;
@@ -475,7 +476,7 @@ namespace MediaBrowser.ServerApplication
{
try
{
ServerManager.Start();
ServerManager.Start(HttpServerUrlPrefix, ServerConfigurationManager.Configuration.EnableHttpLevelLogging);
}
catch
{
@@ -490,6 +491,8 @@ namespace MediaBrowser.ServerApplication
throw;
}
}
ServerManager.StartWebSocketServer();
}
/// <summary>
@@ -501,6 +504,8 @@ namespace MediaBrowser.ServerApplication
{
base.OnConfigurationUpdated(sender, e);
HttpServer.EnableHttpRequestLogging = ServerConfigurationManager.Configuration.EnableHttpLevelLogging;
if (!string.Equals(HttpServer.UrlPrefix, HttpServerUrlPrefix, StringComparison.OrdinalIgnoreCase))
{
NotifyPendingRestart();