aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/HttpServer/HttpListenerHost.cs
diff options
context:
space:
mode:
authorVasily <just.one.man@yandex.ru>2020-04-12 23:40:34 +0300
committerVasily <just.one.man@yandex.ru>2020-04-12 23:40:34 +0300
commit058c35e739d4d3193e236b106cacd7ebc3926705 (patch)
tree2c3af6bfb2820f2d7877b0b040e7da345d573577 /Emby.Server.Implementations/HttpServer/HttpListenerHost.cs
parent30f439287266a8afd6f6e7bea01ed08eb86bf0d7 (diff)
Fix log highlithing
Diffstat (limited to 'Emby.Server.Implementations/HttpServer/HttpListenerHost.cs')
-rw-r--r--Emby.Server.Implementations/HttpServer/HttpListenerHost.cs8
1 files changed, 3 insertions, 5 deletions
diff --git a/Emby.Server.Implementations/HttpServer/HttpListenerHost.cs b/Emby.Server.Implementations/HttpServer/HttpListenerHost.cs
index 229e5d199..95df6fbc4 100644
--- a/Emby.Server.Implementations/HttpServer/HttpListenerHost.cs
+++ b/Emby.Server.Implementations/HttpServer/HttpListenerHost.cs
@@ -3,7 +3,6 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
-using System.Globalization;
using System.IO;
using System.Linq;
using System.Net.Sockets;
@@ -242,18 +241,17 @@ namespace Emby.Server.Implementations.HttpServer
private async Task ErrorHandler(Exception ex, IRequest httpReq, bool logExceptionStackTrace, string urlToLog)
{
- string urlSuffix = string.Format(CultureInfo.InvariantCulture, "; URL being processed: {0}", urlToLog);
try
{
ex = GetActualException(ex);
if (logExceptionStackTrace)
{
- _logger.LogError(ex, "Error processing request{Suffix}", urlSuffix);
+ _logger.LogError(ex, "Error processing request; URL being processed: {Url}", urlToLog);
}
else
{
- _logger.LogError("Error processing request: {Message}{Suffix}", ex.Message, urlSuffix);
+ _logger.LogError("Error processing request: {Message}; URL being processed: {Url}", ex.Message, urlToLog);
}
var httpRes = httpReq.Response;
@@ -273,7 +271,7 @@ namespace Emby.Server.Implementations.HttpServer
}
catch (Exception errorEx)
{
- _logger.LogError(errorEx, "Error this.ProcessRequest(context)(Exception while writing error to the response){Suffix}", urlSuffix);
+ _logger.LogError(errorEx, "Error this.ProcessRequest(context)(Exception while writing error to the response); URL being processed: {Url}", urlToLog);
}
}