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

STDOUT for destroy operations unexpectedly is logged at DEBUG level #3631

Closed
2 tasks done
Kab1r opened this issue Dec 6, 2024 · 2 comments · Fixed by #3646
Closed
2 tasks done

STDOUT for destroy operations unexpectedly is logged at DEBUG level #3631

Kab1r opened this issue Dec 6, 2024 · 2 comments · Fixed by #3646
Labels
bug Something isn't working

Comments

@Kab1r
Copy link

Kab1r commented Dec 6, 2024

Describe the bug

Running terragrunt destroy from a module that includes a parent causes destroy logs to go to DEBUG log level instead of stdout.

Steps To Reproduce

# Setup Directory
cd (mktemp -d)
mkdir terragrunt-destroy-log-bug
cd terragrunt-destroy-log-bug

# Setup Terragrunt Files
touch terragrunt.hcl
mkdir example
echo 'include {
  path = find_in_parent_folders()
}' > example/terragrunt.hcl
echo 'resource "null_resource" "example" {}' > example/example.tf

# Apply
cd example
terragrunt apply  -auto-approve

# Destroy
terragrunt destroy # No messages on stdout
terragrunt destroy --terragrunt-log-level debug # Messages appear

Expected behavior

Destroy logs should go to stdout.

Nice to haves

  • Terminal output
  • Screenshots

Terminal Recording of Bug:

terragrunt-destroy-log-bug-2 cast

Versions

  • Terragrunt version: 0.69.7
  • OpenTofu/Terraform version: v1.8.6
  • Environment details (Ubuntu 20.04, Windows 10, etc.): MacOS Sonoma 14.7.1 (23H222)

Additional context

N/A

@Kab1r Kab1r added the bug Something isn't working label Dec 6, 2024
@yhakbar
Copy link
Collaborator

yhakbar commented Dec 10, 2024

Thanks for reporting this, @Kab1r . We'll take a look at this soon and get back to you.

@levkohimins
Copy link
Contributor

Resolved in v0.69.10 release.

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.

3 participants