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

OS_DEBUG=1 and TF_LOG=DEBUG #1203

Closed
till opened this issue Mar 12, 2021 · 1 comment · Fixed by #1246
Closed

OS_DEBUG=1 and TF_LOG=DEBUG #1203

till opened this issue Mar 12, 2021 · 1 comment · Fixed by #1246

Comments

@till
Copy link
Contributor

till commented Mar 12, 2021

Is there an interest to change the behaviour of OS_DEBUG?

I want to propose the following:

  • user sets TF_LOG=debug (or higher)
  • enable OS_DEBUG=1 by default

I can try to write a PR since we use this provider a lot, would be happy to contribute to it. I often find myself struggling with errors otherwise, and I almost always have to OS_DEBUG=1 to find out what the nature of the problem is anyway.

@frittentheke
Copy link

To me somewhat aligning the OS provider debug logging with the terraform TF_LOG setting seems a great idea!

till added a commit to hostwithquantum/terraform-provider-openstack that referenced this issue May 13, 2021
 - when TF_LOG is debug/trace
 - enable this by default (person probably wants it)

Resolves: terraform-provider-openstack#1203
till added a commit to hostwithquantum/terraform-provider-openstack that referenced this issue Jun 5, 2021
 - when TF_LOG is debug/trace (and OS_DEBUG is not set)
 - enable this by default (person probably wants it)

Resolves: terraform-provider-openstack#1203
till added a commit to hostwithquantum/terraform-provider-openstack that referenced this issue Jul 27, 2021
 - when TF_LOG is debug/trace (and OS_DEBUG is not set)
 - enable this by default (person probably wants it)

Resolves: terraform-provider-openstack#1203
till added a commit to hostwithquantum/terraform-provider-openstack that referenced this issue Jul 27, 2021
 - when TF_LOG is debug/trace (and OS_DEBUG is not set)
 - enable this by default (person probably wants it)

Resolves: terraform-provider-openstack#1203
till added a commit to hostwithquantum/terraform-provider-openstack that referenced this issue Jan 23, 2022
 - when TF_LOG is debug/trace (and OS_DEBUG is not set)
 - enable this by default (person probably wants it)

Resolves: terraform-provider-openstack#1203
ozerovandrei pushed a commit that referenced this issue Feb 6, 2022
* Update: enable debug logging in the provider

 - when TF_LOG is debug/trace (and OS_DEBUG is not set)
 - enable this by default (person probably wants it)

Resolves: #1203

* Chore: update github.com/gophercloud/utils
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants