This commit is contained in:
parent
42a2dd5b3e
commit
b6bbc29498
|
|
@ -132,7 +132,9 @@ namespace Microsoft.AspNetCore.Hosting.Internal
|
|||
public HostingLogScope(HttpContext httpContext, string correlationId)
|
||||
{
|
||||
_traceIdentifier = httpContext.TraceIdentifier;
|
||||
_path = httpContext.Request.Path.ToString();
|
||||
_path = (httpContext.Request.PathBase.HasValue
|
||||
? httpContext.Request.PathBase + httpContext.Request.Path
|
||||
: httpContext.Request.Path).ToString();
|
||||
_correlationId = correlationId;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue