Merge branch 'johluo/verbose-rename' into dev
This commit is contained in:
commit
c672d699f1
|
|
@ -16,7 +16,7 @@ namespace Microsoft.AspNet.Routing.Logging.Internal
|
||||||
}
|
}
|
||||||
|
|
||||||
logger.Log(
|
logger.Log(
|
||||||
logLevel: LogLevel.Verbose,
|
logLevel: LogLevel.Debug,
|
||||||
eventId: 0,
|
eventId: 0,
|
||||||
state: values,
|
state: values,
|
||||||
exception: null,
|
exception: null,
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ namespace Microsoft.AspNet.Routing.Logging
|
||||||
static TreeRouterLoggerExtensions()
|
static TreeRouterLoggerExtensions()
|
||||||
{
|
{
|
||||||
_matchedRouteName = LoggerMessage.Define<string, string>(
|
_matchedRouteName = LoggerMessage.Define<string, string>(
|
||||||
LogLevel.Verbose,
|
LogLevel.Debug,
|
||||||
1,
|
1,
|
||||||
"Request successfully matched the route with name '{RouteName}' and template '{RouteTemplate}'.");
|
"Request successfully matched the route with name '{RouteName}' and template '{RouteTemplate}'.");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,7 @@ namespace Microsoft.AspNet.Routing
|
||||||
object routeValue;
|
object routeValue;
|
||||||
routeValues.TryGetValue(kvp.Key, out routeValue);
|
routeValues.TryGetValue(kvp.Key, out routeValue);
|
||||||
|
|
||||||
logger.LogVerbose(
|
logger.LogDebug(
|
||||||
"Route value '{RouteValue}' with key '{RouteKey}' did not match " +
|
"Route value '{RouteValue}' with key '{RouteKey}' did not match " +
|
||||||
"the constraint '{RouteConstraint}'.",
|
"the constraint '{RouteConstraint}'.",
|
||||||
routeValue,
|
routeValue,
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ namespace Microsoft.AspNet.Builder
|
||||||
|
|
||||||
if (!context.IsHandled)
|
if (!context.IsHandled)
|
||||||
{
|
{
|
||||||
_logger.LogVerbose("Request did not match any routes.");
|
_logger.LogDebug("Request did not match any routes.");
|
||||||
|
|
||||||
await _next.Invoke(httpContext);
|
await _next.Invoke(httpContext);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -149,7 +149,7 @@ namespace Microsoft.AspNet.Routing.Template
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
_logger.LogVerbose(
|
_logger.LogDebug(
|
||||||
"Request successfully matched the route with name '{RouteName}' and template '{RouteTemplate}'.",
|
"Request successfully matched the route with name '{RouteName}' and template '{RouteTemplate}'.",
|
||||||
Name,
|
Name,
|
||||||
RouteTemplate);
|
RouteTemplate);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue