Skip to content

Commit

Permalink
cluster: adjust log level for pd querying failure when display
Browse files Browse the repository at this point in the history
  • Loading branch information
AstroProfundis committed Dec 9, 2020
1 parent c541662 commit 0670e8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cluster/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ func (m *Manager) Display(clusterName string, opt operator.Options) error {
// Check if TiKV's label set correctly
pdClient := api.NewPDClient(pdList, 10*time.Second, tlsCfg)
if lbs, err := pdClient.GetLocationLabels(); err != nil {
color.Yellow("\nWARN: get location labels from pd failed: %v", err)
log.Debugf("get location labels from pd failed: %v", err)
} else if err := spec.CheckTiKVLabels(lbs, pdClient); err != nil {
color.Yellow("\nWARN: there is something wrong with TiKV labels, which may cause data losing:\n%v", err)
}
Expand Down

0 comments on commit 0670e8d

Please sign in to comment.