From f41d8588a0f96ad686bd2e11d5cce3267b500021 Mon Sep 17 00:00:00 2001 From: Brad Town Date: Mon, 18 Nov 2024 14:27:11 -0800 Subject: [PATCH] Debugging. --- balancer/rls/control_channel.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/balancer/rls/control_channel.go b/balancer/rls/control_channel.go index 742307a613cc..df3d1b729655 100644 --- a/balancer/rls/control_channel.go +++ b/balancer/rls/control_channel.go @@ -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) ctrlCh.client = rlsgrpc.NewRouteLookupServiceClient(ctrlCh.cc) ctrlCh.logger.Infof("Control channel created to RLS server at: %v", rlsServerName) @@ -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