浏览代码

add an exception to logging

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

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

@@ -276,9 +276,9 @@ namespace Emby.Server.Implementations.HttpServer
                 {
                     connection.Dispose();
                 }
-                catch
+                catch (Exception ex)
                 {
-                    _logger.LogWarning("Error disposing connection");
+                    _logger.LogError(ex, "Error disposing connection");
                 }
             }
         }