Log 'ASPNETCORE_ENVIRONMENT' value at application startup

This commit is contained in:
Mark Monteiro 2020-03-21 22:30:38 +01:00
parent 54cbf9c4dc
commit 0e3d319a3a

View File

@ -902,7 +902,8 @@ namespace Emby.Server.Implementations
var jellyfinEnvVars = new Dictionary<object, object>();
foreach (var key in allEnvVars.Keys)
{
if (key.ToString().StartsWith("JELLYFIN_", StringComparison.OrdinalIgnoreCase))
string keyName = key.ToString();
if (keyName == "ASPNETCORE_ENVIRONMENT" || keyName.StartsWith("JELLYFIN_", StringComparison.OrdinalIgnoreCase))
{
jellyfinEnvVars.Add(key, allEnvVars[key]);
}