Skip to content

[FEAT]: Switch logging to the tflog package to enable targeted log-level configuration #2629

@kamalmarhubi

Description

@kamalmarhubi

Describe the need

Currently this provider uses the go's log package. Terraform recommends using tflog.

Switching would improve end-user debugging by making it possible to set TF_LOG_PROVIDER_GITHUB=DEBUG and get debug output for just the github provider (docs). We recently had an issue where CLI based authentication wasn't working as expected for one of our engineers and debugging it would have been easier if there was less log output to wade through.

I imagine it might also improve the debugging experience when working on this provider :-)

SDK Version

No response

API Version

No response

Relevant log output

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: MaintenanceAny dependency, housekeeping, and clean up Issue or PR

    Type

    No type

    Projects

    Status

    🔥 Backlog

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions