Skip to content

Commit

Permalink
Revert change moving from logging.NewTransportWithRequestLogging from…
Browse files Browse the repository at this point in the history
… logging.NewTransport. (#1243)
  • Loading branch information
andrewsomething authored Oct 9, 2024
1 parent 3394001 commit 22d938a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion digitalocean/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,12 @@ func (c *Config) Client() (*CombinedConfig, error) {
}

godoClient, err := godo.New(client, godoOpts...)
clientTransport := logging.NewSubsystemLoggingHTTPTransport("DigitalOcean", godoClient.HTTPClient.Transport)

// TODO: logging.NewTransport is deprecated and should be replaced with
// logging.NewTransportWithRequestLogging.
//
//nolint:staticcheck
clientTransport := logging.NewTransport("DigitalOcean", godoClient.HTTPClient.Transport)

godoClient.HTTPClient.Transport = clientTransport

Expand Down

0 comments on commit 22d938a

Please sign in to comment.