Skip to content

Commit

Permalink
Add logging to see what addresses are returned
Browse files Browse the repository at this point in the history
Signed-off-by: notfelineit <notfelineit@gmail.com>
  • Loading branch information
notfelineit committed Nov 17, 2022
1 parent fefe048 commit f2135ef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions go/vt/vtadmin/cluster/resolver/resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,7 @@ func (r *resolver) resolve() (*grpcresolver.State, error) {
defer cancel()

addrs, err := r.discoverAddrs(ctx, r.opts.DiscoveryTags)
log.Infof("Fetched discovery adresses for cluster %s and component %s: %+v", r.cluster, r.component, addrs)
if err != nil {
return nil, fmt.Errorf("failed to discover %ss (cluster %s): %w", r.component, r.cluster, err)
}
Expand Down

0 comments on commit f2135ef

Please sign in to comment.