Skip to content

Commit e6cb8b4

Browse files
PowerVSImageScope set debug true only if log level set 5 and above (#598)
Signed-off-by: Prajyot-Parab <[email protected]>
1 parent 21de1bb commit e6cb8b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cloud/scope/powervs_image.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ func NewPowerVSImageScope(params PowerVSImageScopeParams) (scope *PowerVSImageSc
115115

116116
options := powervs.ServiceOptions{
117117
IBMPIOptions: &ibmpisession.IBMPIOptions{
118-
Debug: true,
118+
Debug: params.Logger.V(DEBUGLEVEL).Enabled(),
119119
UserAccount: account,
120120
Region: region,
121121
Zone: *res.RegionID,

0 commit comments

Comments
 (0)