From 3b63a5e21c83dc7437f8587310e28f142908999a Mon Sep 17 00:00:00 2001 From: jvyden Date: Mon, 22 Nov 2021 16:47:04 -0500 Subject: [PATCH] Update debug build warning --- ProjectLighthouse/Program.cs | 2 +- ProjectLighthouse/Startup.cs | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ProjectLighthouse/Program.cs b/ProjectLighthouse/Program.cs index d08f6bf0..65c6ffac 100644 --- a/ProjectLighthouse/Program.cs +++ b/ProjectLighthouse/Program.cs @@ -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 diff --git a/ProjectLighthouse/Startup.cs b/ProjectLighthouse/Startup.cs index 5c389831..dac68fe7 100644 --- a/ProjectLighthouse/Startup.cs +++ b/ProjectLighthouse/Startup.cs @@ -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();