From 7a9901d0eae46484b6875f92822fd13826e4f622 Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Fri, 24 Apr 2020 15:17:51 -0400 Subject: [PATCH] Log configuration at application startup --- src/Tgstation.Server.Host/Core/Application.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Tgstation.Server.Host/Core/Application.cs b/src/Tgstation.Server.Host/Core/Application.cs index 47fc4e4d30..c75fa87853 100644 --- a/src/Tgstation.Server.Host/Core/Application.cs +++ b/src/Tgstation.Server.Host/Core/Application.cs @@ -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);