From 6b117427f85572c558da6f50f7e1f109cfaefb4a Mon Sep 17 00:00:00 2001 From: Taloth Saldono Date: Sun, 12 Feb 2017 20:23:09 +0100 Subject: [PATCH] Fixed double question mark in log. --- .../Extensions/Pipelines/RequestLoggingPipeline.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/NzbDrone.Api/Extensions/Pipelines/RequestLoggingPipeline.cs b/src/NzbDrone.Api/Extensions/Pipelines/RequestLoggingPipeline.cs index 1132f8e82..73668bc81 100644 --- a/src/NzbDrone.Api/Extensions/Pipelines/RequestLoggingPipeline.cs +++ b/src/NzbDrone.Api/Extensions/Pipelines/RequestLoggingPipeline.cs @@ -39,7 +39,7 @@ private Response LogStart(NancyContext context) context.Items["ApiRequestStartTime"] = DateTime.UtcNow; var reqPath = GetRequestPathAndQuery(context.Request); - + _loggerHttp.Trace("Req: {0} [{1}] {2}", id, context.Request.Method, reqPath); return null; @@ -80,7 +80,7 @@ private static string GetRequestPathAndQuery(Request request) { if (request.Url.Query.IsNotNullOrWhiteSpace()) { - return string.Concat(request.Url.Path, "?", request.Url.Query); + return string.Concat(request.Url.Path, request.Url.Query); } else { @@ -88,4 +88,4 @@ private static string GetRequestPathAndQuery(Request request) } } } -} \ No newline at end of file +}