Преглед на файлове

Log to debug all HTTP 500 response urls

Vasily преди 5 години
родител
ревизия
82f8345aa5
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  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)