Quantcast
Channel: ASP.NET MVC / Web API / Web Pages
Viewing all articles
Browse latest Browse all 7925

Edited Issue: Tracing should trace warning not error for HttpResponseException [949]

$
0
0
The default trace writers do not currently special-case HttpResponseException, and therefore trace at TraceLevel.Error. This is confusing, because it means simple user error in the URI will generate an error trace. This makes it hard to use the tracing layer to report errors. The System.Diagnostic, ETW, and Memory trace writers all try to correct for this to convert it back into a warning.

Recommend the default tracing logic should trace at TraceLevel.Warn whenever the exception is HttpResponseException.

Viewing all articles
Browse latest Browse all 7925

Trending Articles