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

New log does not wrap TF stdout and stderr in JSON #3603

Open
2 tasks
levkohimins opened this issue Nov 25, 2024 · 0 comments · May be fixed by #3602
Open
2 tasks

New log does not wrap TF stdout and stderr in JSON #3603

levkohimins opened this issue Nov 25, 2024 · 0 comments · May be fixed by #3602
Labels
bug Something isn't working

Comments

@levkohimins
Copy link
Contributor

Describe the bug

In new logs, using the --terragrunt-tf-logs-to-json flag has no effect.

Steps To Reproduce

terragrunt plan --terragrunt-log-format json --terragrunt-tf-logs-to-json

Expected behavior

The JSON log output contains TF stdout and stderr with an additional executedCommandArgs field

{"time":"2024-11-26EET01:51:29+02:00", "level":"stdout", "workingDir":"/apps/app001", "tfpath":"tofu", "executedCommandArgs":"plan", "msg":"...."}

Nice to haves

  • Terminal output
  • Screenshots

Versions

  • Terragrunt version:
  • OpenTofu/Terraform version:
  • Environment details (Ubuntu 20.04, Windows 10, etc.):

Additional context

Add any other context about the problem here.

@levkohimins levkohimins added the bug Something isn't working label Nov 25, 2024
@levkohimins levkohimins linked a pull request Nov 25, 2024 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant