Skip to content

Commit d6d92da

Browse files
Add selected cells to debug logging
1 parent d9fa777 commit d6d92da

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

pkg/throttle/throttler.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,9 @@ func (throttler *Throttler) refreshMySQLInventory() error {
327327
if err != nil {
328328
return log.Errorf("Unable to get vitess hosts from %s, %s/%s: %+v", clusterSettings.VitessSettings.API, keyspace, shard, err)
329329
}
330-
log.Debugf("Read %+v hosts from vitess %s, %s/%s", len(tablets), clusterSettings.VitessSettings.API, keyspace, shard)
330+
log.Debugf("Read %+v hosts from vitess %s, %s/%s, cells=%s", len(tablets), clusterSettings.VitessSettings.API,
331+
keyspace, shard, strings.Join(clusterSettings.VitessSettings.Cells, ","),
332+
)
331333
clusterProbes := &mysql.ClusterProbes{
332334
ClusterName: clusterName,
333335
IgnoreHostsCount: clusterSettings.IgnoreHostsCount,

pkg/vitess/api_client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ type Tablet struct {
2222
Type topodata.TabletType `json:"type,omitempty"`
2323
}
2424

25-
// HasValidCell returns a bool reflecting if a tablet type is in a valid cell
25+
// HasValidCell returns a bool reflecting if a tablet is in a valid Vitess cell
2626
func (t Tablet) HasValidCell(validCells []string) bool {
2727
cells := make([]string, 0)
2828
for _, cell := range validCells {

0 commit comments

Comments
 (0)