Closed stijnherreman closed 5 years ago
Addressing a few issues individually:
.UseDeveloperExceptionPage()
if you want, like this:
services.AddExceptional(Configuration.GetSection("Exceptional"), settings =>
{
settings.UseExceptionalPageOnThrow = HostingEnvironment.IsDevelopment();
});
Looks good. I read up on middleware in the meantime and understand it now, but the extra note will certainly be useful for others users. Thanks!
Closing out to cleanup - thanks!
The documentation says:
It's a bit more complex than that.
app.UseExceptional();
must be called after an optionalapp.UseDeveloperExceptionPage();
and beforeapp.UseMvc();
. Otherwise, unhandled exceptions aren't logged.Is this a bug in the middleware, or does the documentation need to be modified?