浏览代码

update logging

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

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

@@ -598,9 +598,10 @@ namespace Emby.Server.Implementations.HttpServer
             {
                 ErrorHandler(ex, httpReq, false);
             }
+
             catch (Exception ex)
             {
-                ErrorHandler(ex, httpReq);
+                ErrorHandler(ex, httpReq, !string.Equals(ex.GetType().Name, "SocketException", StringComparison.OrdinalIgnoreCase));
             }
             finally
             {