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

Simplify log level environment variable usage #1383

Merged
merged 1 commit into from
Jun 22, 2021

Conversation

sterchelen
Copy link

  • Add _LEVEL as suffix to CONSUL_TEMPLATE_LOG
  • Remove CT_LOG
  • Add reference to the environment variable on the readme file

ref #1328

@hashicorp-cla
Copy link

hashicorp-cla commented May 16, 2020

CLA assistant check
All committers have signed the CLA.

@sterchelen
Copy link
Author

Hey, any news about this PR?

@@ -525,8 +525,7 @@ func (c *Config) Finalize() {

if c.LogLevel == nil {
c.LogLevel = stringFromEnv([]string{
"CT_LOG",
"CONSUL_TEMPLATE_LOG",
"CONSUL_TEMPLATE_LOG_LEVEL",
Copy link
Contributor

Choose a reason for hiding this comment

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

How about we just make it all 3. I really don't like breaking backwards compatibility unless absolutely necessary, but I think the new one is better. Thanks.

Copy link
Author

Choose a reason for hiding this comment

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

Yes agree with you. I will do it this week.

Copy link
Author

Choose a reason for hiding this comment

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

@eikenb As expected, just adding the new env variable

Adapt config_test accordingly and update documentation
@sterchelen sterchelen requested review from a team and eikenb and removed request for a team June 15, 2021 19:34
@eikenb eikenb added this to the 0.26.1 milestone Jun 15, 2021
@eikenb eikenb merged commit 71e6e85 into hashicorp:master Jun 22, 2021
@sterchelen sterchelen deleted the log-level-usage branch June 23, 2021 07:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants