Log configuration at application startup

This commit is contained in:
Jordan Brown
2020-04-24 15:17:51 -04:00
parent 6db68e3d37
commit 7a9901d0ea
@@ -336,6 +336,11 @@ namespace Tgstation.Server.Host.Core
if (logger == null)
throw new ArgumentNullException(nameof(logger));
// Log the active configuration.
logger.LogTrace("Active Config:");
foreach (var section in Configuration.GetChildren())
logger.LogTrace("{0}: {1}", section.Key, section.Value);
logger.LogDebug("Content Root: {0}", hostingEnvironment.ContentRootPath);
logger.LogTrace("Web Root: {0}", hostingEnvironment.WebRootPath);