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

Removed the legacy env var: LOGXI_FORMAT #17822

Merged
merged 4 commits into from Nov 4, 2022

Conversation

peteski22
Copy link
Contributor

No description provided.

changelog/17822.txt Outdated Show resolved Hide resolved
@peteski22 peteski22 marked this pull request as ready for review November 4, 2022 15:53
Copy link
Contributor

@cipherboy cipherboy left a comment

Choose a reason for hiding this comment

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

Not worth holding up the merge, tbh.

@@ -60,16 +60,13 @@ func ParseLogFormat(format string) (LogFormat, error) {
case "json":
return JSONFormat, nil
default:
return UnspecifiedFormat, fmt.Errorf("Unknown log format: %s", format)
return UnspecifiedFormat, fmt.Errorf("unknown log format: %s", format)
}
}

// ParseEnvLogFormat parses the log format from an environment variable.
func ParseEnvLogFormat() LogFormat {
Copy link
Contributor

Choose a reason for hiding this comment

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

The one thing that's not immediately clear to me, and probably doesn't need to be answered in this PR, is why is this function necessary?

If we use EnvVar in the StringVar in the command side, do we need to call this as well/alternatively? Or can we just rely on the option variable handling this instead?

@peteski22 peteski22 merged commit 4ec2c6a into main Nov 4, 2022
@peteski22 peteski22 deleted the remove-legacy-log-format-env-var branch November 4, 2022 22:16
jayant07-yb pushed a commit to jayant07-yb/hashicorp-vault-integrations that referenced this pull request Mar 15, 2023
* Removed the legacy env var: LOGXI_FORMAT

* Added changelog

* Actually filled in the CL

* Added the name of legacy env var
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