浏览代码

update service stack config

Luke Pulverenti 9 年之前
父节点
当前提交
1bd3b22c81
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.cs

+ 2 - 1
MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.cs

@@ -67,6 +67,7 @@ namespace MediaBrowser.Server.Implementations.HttpServer
         public override void Configure(Container container)
         {
             HostConfig.Instance.DefaultRedirectPath = DefaultRedirectPath;
+            HostConfig.Instance.LogUnobservedTaskExceptions = false;
 
             HostConfig.Instance.MapExceptionToStatusCode = new Dictionary<Type, int>
             {
@@ -80,7 +81,7 @@ namespace MediaBrowser.Server.Implementations.HttpServer
                 {typeof (ApplicationException), 500}
             };
 
-            HostConfig.Instance.DebugMode = true;
+            HostConfig.Instance.DebugMode = false;
 
             HostConfig.Instance.LogFactory = LogManager.LogFactory;