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 #if DEBUG
Logger.Log 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, " + "If you are running Lighthouse in a production environment, " +
"it is highly recommended to run a release build. ", "it is highly recommended to run a release build. ",
LoggerLevelStartup.Instance LoggerLevelStartup.Instance

View file

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