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

🌶 Ignore sysprop formatted envvars and log the correct variable name #39

Merged
merged 2 commits into from
Sep 15, 2020

Conversation

tspring
Copy link
Contributor

@tspring tspring commented Aug 28, 2020

Fixes #38

Copy link
Contributor

@breedx-nr breedx-nr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we please add a test case that confirms that a poorly formatted item from the environment does NOT make it into the result? These kinds of documentation-style tests are helpful to the future reader who wants to quickly understand how this code works.

Might be as simple as putting that test back into place and changing the assertions to show that those properties do NOT exist?

@tspring tspring requested a review from breedx-nr August 28, 2020 22:14
@breedx-nr breedx-nr changed the title #38 ignore sysprop formatted envvars and log the correct variable name 🌶 Ignore sysprop formatted envvars and log the correct variable name Aug 28, 2020
Copy link
Contributor

@breedx-nr breedx-nr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me. I appreciate the test and logging at WARNING.

@tspring tspring merged commit 8cc23e0 into main Sep 15, 2020
@tspring tspring deleted the newrelic/ignore_dot_delimited_environment_variables branch September 15, 2020 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Ignore environment variables using invalid syntax
2 participants