When a controller is not matched HttpControllerSelectorTracer doesn't log the information
errorTracer is null.
```
_traceWriter.TraceBeginEnd(
request,
TraceCategories.ControllersCategory,
TraceLevel.Info,
_innerSelector.GetType().Name,
SelectControllerMethodName,
beginTrace: (tr) =>
{
tr.Message = Error.Format(
SRResources.TraceRouteMessage,
FormattingUtilities.RouteToString(request.GetRouteData()));
},
execute: () =>
{
controllerDescriptor = _innerSelector.SelectController(request);
},
endTrace: (tr) =>
{
tr.Message = controllerDescriptor == null
? SRResources.TraceNoneObjectMessage
: controllerDescriptor.ControllerName;
},
errorTrace: null);
```
Comments: Legitimate bug, but we're not sure the value is there. In the end the developer will get a reasonable error stating that a controller couldn't be found. It's unfortunate that the tracer doesn't provide more detailed information, but that's OK.
errorTracer is null.
```
_traceWriter.TraceBeginEnd(
request,
TraceCategories.ControllersCategory,
TraceLevel.Info,
_innerSelector.GetType().Name,
SelectControllerMethodName,
beginTrace: (tr) =>
{
tr.Message = Error.Format(
SRResources.TraceRouteMessage,
FormattingUtilities.RouteToString(request.GetRouteData()));
},
execute: () =>
{
controllerDescriptor = _innerSelector.SelectController(request);
},
endTrace: (tr) =>
{
tr.Message = controllerDescriptor == null
? SRResources.TraceNoneObjectMessage
: controllerDescriptor.ControllerName;
},
errorTrace: null);
```
Comments: Legitimate bug, but we're not sure the value is there. In the end the developer will get a reasonable error stating that a controller couldn't be found. It's unfortunate that the tracer doesn't provide more detailed information, but that's OK.