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

Improve IaC Engine Logging #3980

Open
1 of 2 tasks
yhakbar opened this issue Mar 6, 2025 · 0 comments
Open
1 of 2 tasks

Improve IaC Engine Logging #3980

yhakbar opened this issue Mar 6, 2025 · 0 comments
Labels
bug Something isn't working preserved Preserved issues never go stale

Comments

@yhakbar
Copy link
Collaborator

yhakbar commented Mar 6, 2025

Describe the bug

The logs emitted by the IaC engine need improvement.

$ terragrunt plan --experimental-engine
15:15:32.835 ERROR  tofu: Tofu Initialization started
15:15:32.835 ERROR  tofu: Tofu Initialization completed
15:15:32.855 INFO   tofu: Initializing the backend...
15:15:32.856 INFO   tofu: Initializing provider plugins...
15:15:32.856 INFO   tofu: OpenTofu has been successfully initialized!
15:15:32.856 INFO   tofu:
15:15:32.856 INFO   tofu: You may now begin working with OpenTofu. Try running "tofu plan" to see
15:15:32.856 INFO   tofu: any changes that are required for your infrastructure. All OpenTofu commands
15:15:32.856 INFO   tofu: should now work.
15:15:32.856 INFO   tofu: If you ever set or change modules or backend configuration for OpenTofu,
15:15:32.856 INFO   tofu: rerun this command to reinitialize your working directory. If you forget, other
15:15:32.856 INFO   tofu: commands will detect it and remind you to do so if necessary.
15:15:32.884 STDOUT tofu: No changes. Your infrastructure matches the configuration.
15:15:32.884 STDOUT tofu: OpenTofu has compared your real infrastructure against your configuration and
15:15:32.884 STDOUT tofu: found no differences, so no changes are needed.
15:15:32.885 ERROR  tofu: Tofu Shutdown completed

Steps To Reproduce

# terragrunt.hcl

engine {
  source  = "github.com/gruntwork-io/terragrunt-engine-opentofu"
  version = "v0.0.16"
}

Expected behavior

The logs emitted by the engine should not be set as the ERROR logs if they are not errors, and there should be some disambiguation between engine logging and OpenTofu logging.

Nice to haves

  • Terminal output
  • Screenshots

Versions

  • Terragrunt version: v0.75.2
  • OpenTofu/Terraform version: v1.9.0
  • Environment details (Ubuntu 20.04, Windows 10, etc.): macOS
@yhakbar yhakbar added bug Something isn't working preserved Preserved issues never go stale labels Mar 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working preserved Preserved issues never go stale
Projects
None yet
Development

No branches or pull requests

1 participant