Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Closed Issue: [Tracing] Controller selector needs to trace controller not found error. [947]

$
0
0
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.

Viewing all articles
Browse latest Browse all 7215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>