@@ -15,7 +15,7 @@ internal static class PageLoggerExtensions
15
15
{
16
16
public const string PageFilter = "Page Filter" ;
17
17
18
- private static readonly Action < ILogger , string , string [ ] , ModelValidationState , Exception > _handlerMethodExecuting ;
18
+ private static readonly Action < ILogger , string , ModelValidationState , Exception > _handlerMethodExecuting ;
19
19
private static readonly Action < ILogger , string , string , Exception > _handlerMethodExecuted ;
20
20
private static readonly Action < ILogger , object , Exception > _pageFilterShortCircuit ;
21
21
private static readonly Action < ILogger , string , string [ ] , Exception > _malformedPageDirective ;
@@ -28,10 +28,10 @@ static PageLoggerExtensions()
28
28
{
29
29
// These numbers start at 101 intentionally to avoid conflict with the IDs used by ResourceInvoker.
30
30
31
- _handlerMethodExecuting = LoggerMessage . Define < string , string [ ] , ModelValidationState > (
31
+ _handlerMethodExecuting = LoggerMessage . Define < string , ModelValidationState > (
32
32
LogLevel . Information ,
33
33
101 ,
34
- "Executing handler method {HandlerName} with arguments ({Arguments}) - ModelState is {ValidationState}" ) ;
34
+ "Executing handler method {HandlerName} - ModelState is {ValidationState}" ) ;
35
35
36
36
_handlerMethodExecuted = LoggerMessage . Define < string , string > (
37
37
LogLevel . Debug ,
@@ -75,23 +75,8 @@ public static void ExecutingHandlerMethod(this ILogger logger, PageContext conte
75
75
{
76
76
var handlerName = handler . MethodInfo . Name ;
77
77
78
- string [ ] convertedArguments ;
79
- if ( arguments == null )
80
- {
81
- convertedArguments = null ;
82
- }
83
- else
84
- {
85
- convertedArguments = new string [ arguments . Length ] ;
86
- for ( var i = 0 ; i < arguments . Length ; i ++ )
87
- {
88
- convertedArguments [ i ] = Convert . ToString ( arguments [ i ] ) ;
89
- }
90
- }
91
-
92
78
var validationState = context . ModelState . ValidationState ;
93
-
94
- _handlerMethodExecuting ( logger , handlerName , convertedArguments , validationState , null ) ;
79
+ _handlerMethodExecuting ( logger , handlerName , validationState , null ) ;
95
80
}
96
81
}
97
82
0 commit comments