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

Log environment variable keys at startup #18125

Merged
merged 12 commits into from
Dec 2, 2022
Merged

Conversation

elliesterner
Copy link
Contributor

@elliesterner elliesterner commented Nov 28, 2022

Log only the keys to environment variables on startup.
Example:
image

Copy link
Contributor

@jasonodonnell jasonodonnell left a comment

Choose a reason for hiding this comment

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

Small changes but looks good! I did ask a question internally about if putting this in the server configuration info is the right place or if we should simply log it.

changelog/18125.txt Outdated Show resolved Hide resolved
command/server_test.go Outdated Show resolved Hide resolved
elliesterner and others added 3 commits November 30, 2022 09:22
Co-authored-by: Jason O'Donnell <2160810+jasonodonnell@users.noreply.github.com>
changelog/18125.txt Outdated Show resolved Hide resolved
Comment on lines +1306 to +1307
splitEnvVars := strings.Split(v, "=")
envVarKeys = append(envVarKeys, splitEnvVars[0])
Copy link
Contributor

Choose a reason for hiding this comment

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

This formatting looks wrong, can you run make fmt in the root directory and commit the changes (if any)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

that's weird. It looks way more indented in GH than on my local.

Copy link
Contributor

@jasonodonnell jasonodonnell left a comment

Choose a reason for hiding this comment

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

Small nits, but looks good to me!

Co-authored-by: Jason O'Donnell <2160810+jasonodonnell@users.noreply.github.com>
@elliesterner elliesterner merged commit bb99bfa into main Dec 2, 2022
AnPucel pushed a commit that referenced this pull request Jan 14, 2023
* Log environment variable keys at startup

* run make fmt

* change name

* add changelog

* fix changelog nubmer

* fix title

* add test

* fix message

* Update changelog/18125.txt

Co-authored-by: Jason O'Donnell <2160810+jasonodonnell@users.noreply.github.com>

* add trace test

* remove check for >= debug, trace

* Update changelog/18125.txt

Co-authored-by: Jason O'Donnell <2160810+jasonodonnell@users.noreply.github.com>

Co-authored-by: Jason O'Donnell <2160810+jasonodonnell@users.noreply.github.com>
jayant07-yb pushed a commit to jayant07-yb/hashicorp-vault-integrations that referenced this pull request Mar 15, 2023
* Log environment variable keys at startup

* run make fmt

* change name

* add changelog

* fix changelog nubmer

* fix title

* add test

* fix message

* Update changelog/18125.txt

Co-authored-by: Jason O'Donnell <2160810+jasonodonnell@users.noreply.github.com>

* add trace test

* remove check for >= debug, trace

* Update changelog/18125.txt

Co-authored-by: Jason O'Donnell <2160810+jasonodonnell@users.noreply.github.com>

Co-authored-by: Jason O'Donnell <2160810+jasonodonnell@users.noreply.github.com>
@jasonodonnell jasonodonnell deleted the add-env-vars-on-start branch July 6, 2023 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants