Explorar o código

add an exception to logging

dkanada %!s(int64=6) %!d(string=hai) anos
pai
achega
b5b7db1f32
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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");
                 }
             }
         }