Created
June 21, 2018 01:07
-
-
Save dcomartin/8536ad8497fbbc55c256bcf509eda0ec to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public override void Configure(IApplicationBuilder app) | |
{ | |
app.UseProblemDetails(x => | |
{ | |
// This is the default behavior; only include exception details in a development environment. | |
x.IncludeExceptionDetails = ctx => Environment.IsDevelopment(); | |
}); | |
app.UseMvc(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment