Explorar o código

Log to debug all HTTP 500 response urls

Vasily %!s(int64=5) %!d(string=hai) anos
pai
achega
82f8345aa5
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      Emby.Server.Implementations/HttpServer/HttpListenerHost.cs

+ 4 - 0
Emby.Server.Implementations/HttpServer/HttpListenerHost.cs

@@ -539,6 +539,10 @@ namespace Emby.Server.Implementations.HttpServer
             }
             finally
             {
+                if (httpRes.StatusCode >= 500)
+                {
+                    _logger.LogDebug("Sending HTTP Response 500 in response to {Url}", urlToLog);
+                }
                 stopWatch.Stop();
                 var elapsed = stopWatch.Elapsed;
                 if (elapsed.TotalMilliseconds > 500)