Skip to content

Commit

Permalink
go/vt/topo: add error value to GetTablet logs (#14846)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdlayher authored Dec 21, 2023
1 parent 6841090 commit 3a3e7ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions go/vt/topo/tablet.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ func NewTabletInfo(tablet *topodatapb.Tablet, version Version) *TabletInfo {
func (ts *Server) GetTablet(ctx context.Context, alias *topodatapb.TabletAlias) (*TabletInfo, error) {
conn, err := ts.ConnForCell(ctx, alias.Cell)
if err != nil {
log.Errorf("Unable to get connection for cell %s", alias.Cell)
log.Errorf("unable to get connection for cell %q: %v", alias.Cell, err)
return nil, err
}

Expand All @@ -240,7 +240,7 @@ func (ts *Server) GetTablet(ctx context.Context, alias *topodatapb.TabletAlias)
tabletPath := path.Join(TabletsPath, topoproto.TabletAliasString(alias), TabletFile)
data, version, err := conn.Get(ctx, tabletPath)
if err != nil {
log.Errorf("unable to connect to tablet %s: %s", alias, err)
log.Errorf("unable to connect to tablet %q: %v", alias, err)
return nil, err
}
tablet := &topodatapb.Tablet{}
Expand Down

0 comments on commit 3a3e7ea

Please sign in to comment.