mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-09-16 14:32:26 +00:00
Add debug build warning
This commit is contained in:
parent
e98d98980a
commit
652fff7dee
1 changed files with 11 additions and 0 deletions
|
@ -53,6 +53,17 @@ namespace LBPUnion.ProjectLighthouse
|
||||||
if (ServerSettings.Instance.InfluxLoggingEnabled) Logger.AddLogger(new InfluxLogger());
|
if (ServerSettings.Instance.InfluxLoggingEnabled) Logger.AddLogger(new InfluxLogger());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if DEBUG
|
||||||
|
Logger.Log
|
||||||
|
(
|
||||||
|
"This is a debug build. Performance may vary with a release build. " +
|
||||||
|
"If you are running Lighthouse in a production environment, " +
|
||||||
|
"it is highly recommended to run a release build. ",
|
||||||
|
LoggerLevelStartup.Instance
|
||||||
|
);
|
||||||
|
Logger.Log("You can do so by running any dotnet command with the flag: \"-c Release\". ", LoggerLevelStartup.Instance);
|
||||||
|
#endif
|
||||||
|
|
||||||
stopwatch.Stop();
|
stopwatch.Stop();
|
||||||
Logger.Log($"Ready! Startup took {stopwatch.ElapsedMilliseconds}ms. Passing off control to ASP.NET...", LoggerLevelStartup.Instance);
|
Logger.Log($"Ready! Startup took {stopwatch.ElapsedMilliseconds}ms. Passing off control to ASP.NET...", LoggerLevelStartup.Instance);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue