Skip to content

Commit

Permalink
Add some debug info (grpc#2136)
Browse files Browse the repository at this point in the history
  • Loading branch information
apolcyn authored Jun 11, 2018
1 parent 49c8c81 commit 10a4999
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions balancer/grpclb/grpclb_remote_balancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func (lb *lbBalancer) processServerList(l *lbpb.ServerList) {
lb.fullServerList = l.Servers

var backendAddrs []resolver.Address
for _, s := range l.Servers {
for i, s := range l.Servers {
if s.Drop {
continue
}
Expand All @@ -73,7 +73,8 @@ func (lb *lbBalancer) processServerList(l *lbpb.ServerList) {
Addr: fmt.Sprintf("%s:%d", ipStr, s.Port),
Metadata: &md,
}

grpclog.Infof("lbBalancer: server list entry[%d]: ipStr:|%s|, port:|%d|, load balancer token:|%v|",
i, ipStr, s.Port, s.LoadBalanceToken)
backendAddrs = append(backendAddrs, addr)
}

Expand Down

0 comments on commit 10a4999

Please sign in to comment.