mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-30 16:39:21 +01:00
Log configuration at application startup
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user