Skip to content

Commit

Permalink
Add more log output.
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurschreiber committed Jul 11, 2024
1 parent b2f3f78 commit 2def443
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions go/vt/discovery/tablet_health_check.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ func (thc *tabletHealthCheck) stream(ctx context.Context, callback func(*query.S
// This signals the caller to retry
return nil
}

log.Infof("called StreamHealth for %v", thc.Tablet)
err := conn.StreamHealth(ctx, callback)
if err != nil {
// Depending on the specific error the caller can take action
Expand All @@ -144,6 +146,7 @@ func (thc *tabletHealthCheck) Connection() queryservice.QueryService {

func (thc *tabletHealthCheck) connectionLocked() queryservice.QueryService {
if thc.Conn == nil {
log.Infof("Opening connection to tablet %v", thc.Tablet)
conn, err := tabletconn.GetDialer()(thc.Tablet, grpcclient.FailFast(true))
if err != nil {
thc.LastError = err
Expand Down

0 comments on commit 2def443

Please sign in to comment.