Skip to content

Commit a7a2876

Browse files
oliviassssshraddhabang
authored andcommitted
fix log level in listener manager and tagging manager (kubernetes-sigs#3573)
1 parent f689bbd commit a7a2876

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pkg/deploy/elbv2/listener_manager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ func (m *defaultListenerManager) updateSDKListenerWithExtraCertificates(ctx cont
161161
sdkLS ListenerWithTags, isNewSDKListener bool) error {
162162
// if TLS is not supported, we shouldn't update
163163
if resLS.Spec.SSLPolicy == nil && sdkLS.Listener.SslPolicy == nil {
164-
m.logger.V(2).Info("Res and Sdk Listener don't have SSL Policy set, we skip updating extra certs for non-TLS listener.")
164+
m.logger.V(1).Info("Res and Sdk Listener don't have SSL Policy set, skip updating extra certs for non-TLS listener.")
165165
return nil
166166
}
167167

pkg/deploy/elbv2/tagging_manager.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,15 +259,15 @@ func (m *defaultTaggingManager) ListListenerRules(ctx context.Context, lsARN str
259259
// TODO: we can refactor this by store provisioned LB's ARN as annotations on Ingress/Service, thus avoid this heavy lookup calls when RGT is not available.
260260
func (m *defaultTaggingManager) ListLoadBalancers(ctx context.Context, tagFilters ...tracking.TagFilter) ([]LoadBalancerWithTags, error) {
261261
if m.featureGates.Enabled(config.EnableRGTAPI) {
262-
m.logger.V(2).Info("ResourceGroupTagging enabled, list the load balancers via RGT API")
262+
m.logger.V(1).Info("ResourceGroupTagging enabled, list the load balancers via RGT API")
263263
return m.listLoadBalancersRGT(ctx, tagFilters)
264264
}
265265
return m.listLoadBalancersNative(ctx, tagFilters)
266266
}
267267

268268
func (m *defaultTaggingManager) ListTargetGroups(ctx context.Context, tagFilters ...tracking.TagFilter) ([]TargetGroupWithTags, error) {
269269
if m.featureGates.Enabled(config.EnableRGTAPI) {
270-
m.logger.V(2).Info("ResourceGroupTagging enabled, list the target groups via RGT API")
270+
m.logger.V(1).Info("ResourceGroupTagging enabled, list the target groups via RGT API")
271271
return m.listTargetGroupsRGT(ctx, tagFilters)
272272
}
273273
return m.listTargetGroupsNative(ctx, tagFilters)

0 commit comments

Comments
 (0)