-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
JSON output fetching fixes #1462
base: master
Are you sure you want to change the base?
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.
Let me know if my suggestions are not relevant, I will approve it.
} | ||
_, tgLogSet := options.EnvVars["TERRAGRUNT_DISABLE_LOG_FORMATTING"] | ||
if !tgLogSet { | ||
options.EnvVars["TERRAGRUNT_DISABLE_LOG_FORMATTING"] = "true" |
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.
This env var is deprecated, please use TERRAGRUNT_LOG_FORMAT=key-value
*But only if you use the latest version that supports log format.
|
||
var ( | ||
ansiLineRegex = regexp.MustCompile(`(?m)^\x1b\[[0-9;]*m.*`) | ||
tgLogLevel = regexp.MustCompile(`.*time=\S+ level=\S+ prefix=\S+ binary=\S+ msg=.*`) |
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.
You can use TERRAGRUNT_LOG_CUSTOM_FORMAT="%msg(color=disable)"
to get rid of cleanJson
function at all.
*But only if you use the latest version that supports custom log format.
Description
Included changes:
Fixes #1453.
Fixes #1461.
TODOs
Read the Gruntwork contribution guidelines.
Release Notes (draft)
Added / Removed / Updated [X].
Updated output parsing from Terragrunt
Migration Guide