@@ -594,12 +594,10 @@ func newAWSCloud2(cfg config.CloudConfig, awsServices Services, provider config.
594594 }
595595
596596 ec2 , err := awsServices .Compute (ctx , regionName , credentialsV2 )
597- klog .InfoS ("[debug] Created ec2, " , ec2 , "nil check: " , (ec2 == nil ))
598597 if err != nil {
599598 return nil , fmt .Errorf ("error creating AWS EC2 client: %v" , err )
600599 }
601600
602- klog .InfoS ("[debug] Created ec2, " , ec2 , "nil check: " , (ec2 == nil ))
603601 ec2v2 , err := services .NewEc2SdkV2 (ctx , regionName , credentialsV2 )
604602 if err != nil {
605603 return nil , fmt .Errorf ("error creating AWS EC2v2 client: %v" , err )
@@ -631,7 +629,6 @@ func newAWSCloud2(cfg config.CloudConfig, awsServices Services, provider config.
631629 createTagsBatcher : newCreateTagsBatcher (ctx , ec2 ),
632630 deleteTagsBatcher : newDeleteTagsBatcher (ctx , ec2 ),
633631 }
634- klog .InfoS ("[debug] Created cloud, ec2:" , ec2 )
635632 awsCloud .instanceCache .cloud = awsCloud
636633 awsCloud .zoneCache .cloud = awsCloud
637634 awsCloud .instanceTopologyManager = resourcemanagers .NewInstanceTopologyManager (ec2v2 , & cfg )
@@ -648,9 +645,7 @@ func newAWSCloud2(cfg config.CloudConfig, awsServices Services, provider config.
648645 }
649646 awsCloud .vpcID = cfg .Global .VPC
650647 } else {
651- klog .InfoS ("[debug] calling buildSelfAWSInstance" , awsCloud .ec2 )
652648 selfAWSInstance , err := awsCloud .buildSelfAWSInstance (ctx )
653- klog .InfoS ("[debug] done calling buildSelfAWSInstance" , awsCloud .ec2 )
654649 if err != nil {
655650 return nil , err
656651 }
@@ -1121,9 +1116,7 @@ func (c *Cloud) buildSelfAWSInstance(ctx context.Context) (*awsInstance, error)
11211116 // information from the instance returned by the EC2 API - it is a
11221117 // single API call to get all the information, and it means we don't
11231118 // have two code paths.
1124- klog .InfoS ("[debug] calling getInstanceByID" , c .ec2 )
11251119 instance , err := c .getInstanceByID (ctx , instanceID )
1126- klog .InfoS ("[debug] done calling getInstanceByID" , c .ec2 )
11271120 if err != nil {
11281121 return nil , fmt .Errorf ("error finding instance %s: %q" , instanceID , err )
11291122 }
@@ -3132,9 +3125,7 @@ func (c *Cloud) UpdateLoadBalancer(ctx context.Context, clusterName string, serv
31323125
31333126// Returns the instance with the specified ID
31343127func (c * Cloud ) getInstanceByID (ctx context.Context , instanceID string ) (* ec2types.Instance , error ) {
3135- klog .InfoS ("[debug] calling getInstancesByIDs" , c .ec2 )
31363128 instances , err := c .getInstancesByIDs (ctx , []string {instanceID })
3137- klog .InfoS ("[debug] done calling getInstancesByIDs" , c .ec2 )
31383129 if err != nil {
31393130 return nil , err
31403131 }
@@ -3159,9 +3150,7 @@ func (c *Cloud) getInstancesByIDs(ctx context.Context, instanceIDs []string) (ma
31593150 InstanceIds : instanceIDs ,
31603151 }
31613152
3162- klog .InfoS ("[debug] calling DescribeInstances" , c .ec2 )
31633153 instances , err := c .ec2 .DescribeInstances (ctx , request )
3164- klog .InfoS ("[debug] done calling DescribeInstances" , c .ec2 )
31653154 if err != nil {
31663155 return nil , err
31673156 }
0 commit comments