Revert for grumpy test

This commit is contained in:
Ben Adams 2015-09-28 01:52:17 +01:00
parent ed1fd4a2e8
commit 434bddeec5
1 changed files with 2 additions and 1 deletions

View File

@ -95,6 +95,7 @@ namespace Microsoft.AspNet.Hosting.Internal
{ {
var httpContext = contextFactory.CreateHttpContext(features); var httpContext = contextFactory.CreateHttpContext(features);
httpContext.ApplicationServices = _applicationServices; httpContext.ApplicationServices = _applicationServices;
var requestIdentifier = GetRequestIdentifier(httpContext);
if (telemetrySource.IsEnabled("Microsoft.AspNet.Hosting.BeginRequest")) if (telemetrySource.IsEnabled("Microsoft.AspNet.Hosting.BeginRequest"))
{ {
@ -109,7 +110,7 @@ namespace Microsoft.AspNet.Hosting.Internal
logger.IsEnabled(LogLevel.Information) || logger.IsEnabled(LogLevel.Information) ||
logger.IsEnabled(LogLevel.Verbose) || logger.IsEnabled(LogLevel.Verbose) ||
logger.IsEnabled(LogLevel.Debug) logger.IsEnabled(LogLevel.Debug)
? logger.BeginScope("Request Id: {RequestId}", GetRequestIdentifier(httpContext)) ? logger.BeginScope("Request Id: {RequestId}", requestIdentifier)
: null) : null)
{ {
contextAccessor.HttpContext = httpContext; contextAccessor.HttpContext = httpContext;