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

Revert change moving from logging.NewTransportWithRequestLogging from logging.NewTransport. #1243

Merged
merged 1 commit into from
Oct 9, 2024

Conversation

andrewsomething
Copy link
Member

In #1237, a number of deprecated methods were update to allow for enabling additional staticchecks. Unfortunately, moving from logging.NewTransport to logging.NewTransportWithRequestLogging will require additional work to maintain the current level of detail in our debug logging.

Currently debug logging contains the following error message and does not include the actual details for the request and response bodies:

2024-10-09T10:51:36.704-0400 [DEBUG] provider.terraform-provider-digitalocean: Received HTTP Response: Date="Wed, 09 Oct 2024 14:51:36 GMT" X-Response-From=service new_logger_warning="This log was generated by a subsystem logger that wasn't created before being used. Use tflog.NewSubsystem to create this logger before it is used."

I've used nolint:staticcheck inline rather than disabling the check again.

@andrewsomething andrewsomething requested a review from a team October 9, 2024 15:23
@andrewsomething andrewsomething merged commit 22d938a into main Oct 9, 2024
3 checks passed
@andrewsomething andrewsomething deleted the asb/logging-revert branch October 9, 2024 16:10
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.

2 participants