Skip to content

Commit

Permalink
Merge pull request #88 from loxilb-io/revert-br
Browse files Browse the repository at this point in the history
Revert "add log msg for debug"
  • Loading branch information
TrekkieCoder authored Jan 8, 2024
2 parents dd03ad9 + 8eaa767 commit 0667af0
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions pkg/agent/manager/loadbalancer/loadbalancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -695,17 +695,16 @@ func (m *Manager) addLoadBalancer(svc *corev1.Service) error {
}

isError := true
var errCheck error
for _, errCh := range errChList {
errCheck = <-errCh
if errCheck == nil {
err := <-errCh
if err == nil {
isError = false
}
}
if isError {
retIPAMOnErr = isError
klog.Errorf("failed to add load-balancer. err: %v", errCheck)
return fmt.Errorf("failed to add loxiLB loadBalancer. err: %v", errCheck)
klog.Errorf("failed to add load-balancer")
return fmt.Errorf("failed to add loxiLB loadBalancer")
}
m.lbCache[cacheKey].LbModelList = append(m.lbCache[cacheKey].LbModelList, lbModelList...)
if ingSvcPair.InRange || ingSvcPair.StaticIP {
Expand Down

0 comments on commit 0667af0

Please sign in to comment.