-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Conversation
There was a problem hiding this 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 { |
There was a problem hiding this comment.
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?
No description provided.