Fix some style nits

This commit is contained in:
David Fowler 2017-03-28 11:53:35 -07:00
parent 8165609f4e
commit c1487bf93d
1 changed files with 4 additions and 3 deletions

View File

@ -15,11 +15,12 @@ namespace Microsoft.AspNetCore.Hosting.Internal
{
public static IDisposable RequestScope(this ILogger logger, HttpContext httpContext)
{
// to avoid allocation, return a null scope if the logger is not on at least to some degree.
// To avoid allocation, return a null scope if the logger is not on at least to some degree.
if (logger.IsEnabled(LogLevel.Critical))
{
return logger.BeginScope(new HostingLogScope(httpContext));
else
return null;
}
return null;
}
public static void ApplicationError(this ILogger logger, Exception exception)