Skip to content

Commit

Permalink
Debugging.
Browse files Browse the repository at this point in the history
  • Loading branch information
townba committed Nov 18, 2024
1 parent 510eb91 commit f41d858
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions balancer/rls/control_channel.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ func newControlChannel(rlsServerName, serviceConfig string, rpcTimeout time.Dura
if err != nil {
return nil, err
}
cc.logger.Infof("\x1B[41mtownba: ctrlCh.cc=%+v\x1B[m", ctrlCh.cc)

Check failure on line 82 in balancer/rls/control_channel.go

View workflow job for this annotation

GitHub Actions / upload

undefined: cc

Check failure on line 82 in balancer/rls/control_channel.go

View workflow job for this annotation

GitHub Actions / tests (vet, 1.22)

undefined: cc

Check failure on line 82 in balancer/rls/control_channel.go

View workflow job for this annotation

GitHub Actions / tests (extras, 1.23)

undefined: cc

Check failure on line 82 in balancer/rls/control_channel.go

View workflow job for this annotation

GitHub Actions / tests (tests, 1.23)

undefined: cc

Check failure on line 82 in balancer/rls/control_channel.go

View workflow job for this annotation

GitHub Actions / tests (tests, 1.23, -race)

undefined: cc

Check failure on line 82 in balancer/rls/control_channel.go

View workflow job for this annotation

GitHub Actions / tests (tests, 1.23, 386)

undefined: cc

Check failure on line 82 in balancer/rls/control_channel.go

View workflow job for this annotation

GitHub Actions / tests (tests, 1.23, arm64)

undefined: cc

Check failure on line 82 in balancer/rls/control_channel.go

View workflow job for this annotation

GitHub Actions / tests (tests, 1.22)

undefined: cc

Check failure on line 82 in balancer/rls/control_channel.go

View workflow job for this annotation

GitHub Actions / tests (tests, 1.23, -race, GRPC_EXPERIMENTAL_ENABLE_NEW_PICK_FIRST=true)

undefined: cc
ctrlCh.client = rlsgrpc.NewRouteLookupServiceClient(ctrlCh.cc)
ctrlCh.logger.Infof("Control channel created to RLS server at: %v", rlsServerName)

Expand Down Expand Up @@ -215,9 +216,9 @@ func (cc *controlChannel) lookup(reqKeys map[string]string, reason rlspb.RouteLo

ctx, cancel := context.WithTimeout(context.Background(), cc.rpcTimeout)
defer cancel()
cc.logger.Infof("\x1B[41mtownba RouteLookup before\x1B[m")
cc.logger.Infof("\x1B[41mtownba: RouteLookup before\x1B[m")
resp, err := cc.client.RouteLookup(ctx, req)
cc.logger.Infof("\x1B[41mtownba RouteLookup after\x1B[m")
cc.logger.Infof("\x1B[41mtownba: RouteLookup after\x1B[m")
cb(resp.GetTargets(), resp.GetHeaderData(), err)
}()
return false
Expand Down

0 comments on commit f41d858

Please sign in to comment.