Skip to content

Commit 4cc8190

Browse files
committed
Clean up
1 parent d6e3ceb commit 4cc8190

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Hosting/Hosting/src/Internal/HostingApplicationDiagnostics.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public void BeginRequest(HttpContext httpContext, HostingApplication.Context con
6969
// Scope may be relevant for a different level of logging, so we always create it
7070
// see: https://github.com/aspnet/Hosting/pull/944
7171
// Scope can be null if logging is not on.
72-
context.Scope = _logger.RequestScope(httpContext, context.Activity.Id);
72+
context.Scope = _logger.RequestScope(httpContext);
7373

7474
if (_logger.IsEnabled(LogLevel.Information))
7575
{

src/Hosting/Hosting/src/Internal/HostingLoggerExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace Microsoft.AspNetCore.Hosting
1313
{
1414
internal static class HostingLoggerExtensions
1515
{
16-
public static IDisposable RequestScope(this ILogger logger, HttpContext httpContext, string activityId)
16+
public static IDisposable RequestScope(this ILogger logger, HttpContext httpContext)
1717
{
1818
return logger.BeginScope(new HostingLogScope(httpContext));
1919
}

0 commit comments

Comments
 (0)