File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,10 @@ import (
40
40
servicesutils "sigs.k8s.io/cluster-api-provider-ibmcloud/pkg/cloud/services/utils"
41
41
)
42
42
43
+ const (
44
+ DEBUGLEVEL = 5
45
+ )
46
+
43
47
// PowerVSClusterScopeParams defines the input parameters used to create a new PowerVSClusterScope.
44
48
type PowerVSClusterScopeParams struct {
45
49
Client client.Client
@@ -104,7 +108,7 @@ func NewPowerVSClusterScope(params PowerVSClusterScopeParams) (*PowerVSClusterSc
104
108
105
109
options := powervs.ServiceOptions {
106
110
PIOptions : & ibmpisession.PIOptions {
107
- Debug : true ,
111
+ Debug : params . Logger . V ( DEBUGLEVEL ). Enabled () ,
108
112
UserAccount : account ,
109
113
Region : region ,
110
114
Zone : * res .RegionID ,
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ func NewPowerVSMachineScope(params PowerVSMachineScopeParams) (*PowerVSMachineSc
121
121
122
122
options := powervs.ServiceOptions {
123
123
PIOptions : & ibmpisession.PIOptions {
124
- Debug : true ,
124
+ Debug : params . Logger . V ( DEBUGLEVEL ). Enabled () ,
125
125
UserAccount : account ,
126
126
Region : region ,
127
127
Zone : * res .RegionID ,
You can’t perform that action at this time.
0 commit comments