diff --git a/internal/pkg/services/load-balancer/client/client.go b/internal/pkg/services/load-balancer/client/client.go index 0d8910315..5a8aa31e4 100644 --- a/internal/pkg/services/load-balancer/client/client.go +++ b/internal/pkg/services/load-balancer/client/client.go @@ -30,6 +30,12 @@ func ConfigureClient(p *print.Printer) (*loadbalancer.APIClient, error) { cfgOptions = append(cfgOptions, authCfgOption, sdkConfig.WithRegion("eu01")) } + if p.IsVerbosityDebug() { + cfgOptions = append(cfgOptions, + sdkConfig.WithMiddleware(print.RequestResponseCapturer(p, nil)), + ) + } + apiClient, err = loadbalancer.NewAPIClient(cfgOptions...) if err != nil { p.Debug(print.ErrorLevel, "create new API client: %v", err)