Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add list of environment variables to trace log #13100

Open
SimonWahlin opened this issue Jan 25, 2024 · 0 comments · May be fixed by #13777
Open

Add list of environment variables to trace log #13100

SimonWahlin opened this issue Jan 25, 2024 · 0 comments · May be fixed by #13777
Assignees
Labels
enhancement New feature or request

Comments

@SimonWahlin
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
There has been a few Issues and discussions regarding readEnvironmentVariable() and how to troubleshoot when it doesn't work as expected.

To make troubleshooting the use of readEnvironmentVariable() easier, it would be helpful if the method also (trace)logged the name of all environment variables found.

Describe the solution you'd like
Write name of any environment variable found to the trace log.

The details around when to log might need some discussion, my thoughts are one of:

  • Each time readEnvironmentVariable() is called
  • Once per compilation where readEnvironmentVariable() will be called
  • Only if readEnvironmentVariable() fails to find a value

Since environment variables might contain sensitive information, I do not think their values should be logged, but getting a list of all the names would make it a lot easier to determine that the expected variable actually exists in the right scope.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Todo
Development

Successfully merging a pull request may close this issue.

2 participants