fix(cmd): support custom TG logger settings#1509
Merged
james00012 merged 1 commit intogruntwork-io:mainfrom Feb 6, 2025
Merged
fix(cmd): support custom TG logger settings#1509james00012 merged 1 commit intogruntwork-io:mainfrom
james00012 merged 1 commit intogruntwork-io:mainfrom
Conversation
cbowlby-bt
reviewed
Feb 5, 2025
| if !inEnv { | ||
| // key-value format for terragrunt logs to avoid colors and have plain form | ||
| // https://terragrunt.gruntwork.io/docs/reference/cli-options/#terragrunt-log-format | ||
| options.EnvVars[tgLogFormatKey] = "key-value" |
Contributor
Author
There was a problem hiding this comment.
key-value format for terragrunt logs to avoid colors and have plain form by default inside terratest
Terragrunt log formatting was only supported within the options.envVars. If settings were defined at the OS env level, they were ignored. This will now check options.envVar and then os.env vars before using the default settings for TG log formatting in terratest. resolves: gruntwork-io#1508
bdb44d7 to
f927880
Compare
james00012
approved these changes
Feb 6, 2025
Contributor
james00012
left a comment
There was a problem hiding this comment.
LGTM. Pass all the relevant tests.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Terragrunt log formatting was only supported within the options.envVars. If settings were defined at the OS env level, they were ignored.
This will now check options.envVar and then os.env vars before using the default settings for TG log formatting in terratest.
Fixes: #1508
Release Notes (draft)
Updated Terragrunt log formatting configuration