Skip to content

Commit 82434dd

Browse files
committed
ajust log level
Signed-off-by: roc <[email protected]>
1 parent c740343 commit 82434dd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

internal/controller/clbbinding.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ func (r *CLBBindingReconciler[T]) ensureBackendBindings(ctx context.Context, bd
346346
if err = r.ensureState(ctx, bd, networkingv1alpha1.CLBBindingStateNoBackend); err != nil {
347347
return errors.WithStack(err)
348348
}
349-
log.FromContext(ctx).Info("not bind backend due to backend not found")
349+
log.FromContext(ctx).V(1).Info("not bind backend due to backend not found")
350350
needBind = false
351351
}
352352
// 其它错误,直接返回
@@ -360,7 +360,7 @@ func (r *CLBBindingReconciler[T]) ensureBackendBindings(ctx context.Context, bd
360360
if err = r.ensureState(ctx, bd, networkingv1alpha1.CLBBindingStateWaitBackend); err != nil {
361361
return errors.WithStack(err)
362362
}
363-
log.FromContext(ctx).Info("not bind backend due to pod not scheduled")
363+
log.FromContext(ctx).V(1).Info("not bind backend due to pod not scheduled")
364364
needBind = false
365365
}
366366
return errors.WithStack(err)
@@ -390,7 +390,7 @@ func (r *CLBBindingReconciler[T]) ensureBackendBindings(ctx context.Context, bd
390390
if err = r.ensureState(ctx, bd, networkingv1alpha1.CLBBindingStateWaitBackend); err != nil {
391391
return errors.WithStack(err)
392392
}
393-
log.FromContext(ctx).Info("not bind backend due to no pod ip")
393+
log.FromContext(ctx).V(1).Info("not bind backend due to no pod ip")
394394
needBind = false
395395
}
396396

@@ -452,7 +452,7 @@ func (r *CLBBindingReconciler[T]) ensureBackendBindings(ctx context.Context, bd
452452
// 所有端口都已绑定成功,更新状态并将绑定信息写入 backend 注解
453453
if status.State != networkingv1alpha1.CLBBindingStateBound {
454454
cost := time.Since(bd.GetCreationTimestamp().Time)
455-
log.FromContext(ctx).Info("binding performance", "cost", cost.String())
455+
log.FromContext(ctx).V(1).Info("binding performance", "cost", cost.String())
456456
r.Recorder.Event(bd.GetObject(), corev1.EventTypeNormal, "AllBound", "all targets bound to listener")
457457
if err := util.RetryIfPossible(func() error {
458458
_, err := bd.FetchObject(ctx, r.Client)

0 commit comments

Comments
 (0)