Skip to content

Commit

Permalink
Less logging
Browse files Browse the repository at this point in the history
  • Loading branch information
arjan-bal committed Dec 11, 2024
1 parent f27c877 commit d91af31
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion balancer/weightedroundrobin/balancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,9 @@ type wrrBalancer struct {
}

func (b *wrrBalancer) UpdateClientConnState(ccs balancer.ClientConnState) error {
b.logger.Infof("UpdateCCS: %v", ccs)
if b.logger.V(2) {
b.logger.Infof("UpdateCCS: %v", ccs)
}

Check warning on line 224 in balancer/weightedroundrobin/balancer.go

View check run for this annotation

Codecov / codecov/patch

balancer/weightedroundrobin/balancer.go#L223-L224

Added lines #L223 - L224 were not covered by tests
cfg, ok := ccs.BalancerConfig.(*lbConfig)
if !ok {
return fmt.Errorf("wrr: received nil or illegal BalancerConfig (type %T): %v", ccs.BalancerConfig, ccs.BalancerConfig)
Expand Down
1 change: 0 additions & 1 deletion xds/internal/balancer/outlierdetection/subconn_wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ func (scw *subConnWrapper) String() string {
}

func (scw *subConnWrapper) RegisterHealthListener(listener func(balancer.SubConnState)) {
fmt.Println("Health listener registered")
scw.mu.Lock()
defer scw.mu.Unlock()

Expand Down

0 comments on commit d91af31

Please sign in to comment.