Log 'JELLYFIN_' environment variables at application start
This commit is contained in:
parent
ef4dfd4461
commit
885bc11b67
|
@ -897,6 +897,18 @@ namespace Emby.Server.Implementations
|
|||
.GetCommandLineArgs()
|
||||
.Distinct();
|
||||
|
||||
// Get all 'JELLYFIN_' prefixed environment variables
|
||||
var allEnvVars = Environment.GetEnvironmentVariables();
|
||||
var jellyfinEnvVars = new Dictionary<object, object>();
|
||||
foreach (var key in allEnvVars.Keys)
|
||||
{
|
||||
if (key.ToString().StartsWith("JELLYFIN_", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
jellyfinEnvVars.Add(key, allEnvVars[key]);
|
||||
}
|
||||
}
|
||||
|
||||
logger.LogInformation("Environment Variables: {EnvVars}", jellyfinEnvVars);
|
||||
logger.LogInformation("Arguments: {Args}", commandLineArgs);
|
||||
logger.LogInformation("Operating system: {OS}", OperatingSystem.Name);
|
||||
logger.LogInformation("Architecture: {Architecture}", RuntimeInformation.OSArchitecture);
|
||||
|
|
Loading…
Reference in New Issue
Block a user