diff --git a/src/Mvc/Mvc.ViewFeatures/src/ViewComponentResultExecutor.cs b/src/Mvc/Mvc.ViewFeatures/src/ViewComponentResultExecutor.cs index 54195048895b..dc2a2fd4fdae 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/ViewComponentResultExecutor.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/ViewComponentResultExecutor.cs @@ -183,7 +183,7 @@ private static Task GetViewComponentResult(IViewComponentHelper vi } else { - Log.ViewComponentResultExecuting(_logger, result.ViewComponentType); + Log.ViewComponentResultExecuting(logger, result.ViewComponentType); return viewComponentHelper.InvokeAsync(result.ViewComponentType, result.Arguments); } }