فهرست منبع

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
             finally
             {
             {
+                if (httpRes.StatusCode >= 500)
+                {
+                    _logger.LogDebug("Sending HTTP Response 500 in response to {Url}", urlToLog);
+                }
                 stopWatch.Stop();
                 stopWatch.Stop();
                 var elapsed = stopWatch.Elapsed;
                 var elapsed = stopWatch.Elapsed;
                 if (elapsed.TotalMilliseconds > 500)
                 if (elapsed.TotalMilliseconds > 500)