antonbabenko / pre-commit-terraform

pre-commit git hooks to take care of Terraform configurations 🇺🇦

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Introduce log levels and move unneeded logs to `debug` log level

brettcurtis opened this issue · comments

Describe the bug

Seeing duplicate or unclear output in regards to Success! The configuration is valid.

Command 'terraform init' successfully done: regional/infra
Success! The configuration is valid.

Success! The configuration is valid.

How can we reproduce it?

gh repo clone osinfra-io/google-cloud-networking
cd google-cloud-networking
 find . -name ".terraform.lock.hcl" | xargs rm -rf
 find . -name ".terraform" | xargs rm -rf
pre-commit run -a

Okay, need to add a DEBUG log level, set log level to INFO by default, and move mostly all of these logs to the DEBUG lvl

image