Skip to content

refactor: migrate data_source_github_ref logging to tflog#3329

Closed
texasich wants to merge 1 commit intointegrations:mainfrom
texasich:refactor/migrate-data-source-github-ref-to-tflog
Closed

refactor: migrate data_source_github_ref logging to tflog#3329
texasich wants to merge 1 commit intointegrations:mainfrom
texasich:refactor/migrate-data-source-github-ref-to-tflog

Conversation

@texasich
Copy link
Copy Markdown

Part of the ongoing tflog migration effort tracked in #3070.

Replaces the single log.Printf("[DEBUG] ...") call in data_source_github_ref.go with tflog.Debug, bringing this data source inline with the structured, context-aware logging approach the rest of the codebase is moving towards.

Changes:

  • Drop stdlib log import
  • Add fmt and github.com/hashicorp/terraform-plugin-log/tflog
  • Convert log.Printf to tflog.Debug with structured key/value fields (owner, repo, ref)

No behavior change — pure logging refactor.

Replace stdlib log.Printf with tflog.Debug so this data source's
debug messages flow through the structured, context-aware logger
introduced in integrations#3070. Follows the same pattern used in
data_source_github_branch.go.
@github-actions
Copy link
Copy Markdown

👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labeled with Status: Up for grabs. You & others like you are the reason all of this works! So thank you & happy coding! 🚀

@texasich
Copy link
Copy Markdown
Author

Closing per the 1-open-PR-per-new-contributor rule. Realized too late I had three PRs open at once on top of #3325. Will bring this back once #3325 is through -- branch is intact on my fork.

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 this pull request may close these issues.

1 participant