Update debug build warning

This commit is contained in:
jvyden 2021-11-22 16:47:04 -05:00
commit 3b63a5e21c
No known key found for this signature in database
GPG key ID: 18BCF2BE0262B278
2 changed files with 4 additions and 3 deletions

View file

@ -56,7 +56,7 @@ namespace LBPUnion.ProjectLighthouse
#if DEBUG
Logger.Log
(
"This is a debug build. Performance may vary with a release build. " +
"This is a debug build, so performance may suffer! " +
"If you are running Lighthouse in a production environment, " +
"it is highly recommended to run a release build. ",
LoggerLevelStartup.Instance

View file

@ -11,7 +11,6 @@ using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.HttpOverrides;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Primitives;
namespace LBPUnion.ProjectLighthouse
@ -71,7 +70,9 @@ namespace LBPUnion.ProjectLighthouse
computeDigests = false;
}
if (env.IsDevelopment()) app.UseDeveloperExceptionPage();
#if DEBUG
app.UseDeveloperExceptionPage();
#endif
app.UseForwardedHeaders();