Skip to content

Commit

Permalink
Merge pull request #4757 from planetscale/ds-log-error
Browse files Browse the repository at this point in the history
log actual error when GetSrvKeyspace fails
  • Loading branch information
deepthi authored Mar 29, 2019
2 parents 06acf3f + ebcca2e commit c91eff9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/vt/vttablet/tabletmanager/state_change.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ func (agent *ActionAgent) changeCallback(ctx context.Context, oldTablet, newTabl
}
srvKeyspace, err := agent.TopoServer.GetSrvKeyspace(ctx, newTablet.Alias.Cell, newTablet.Keyspace)
if err != nil {
log.Error("Fail to get SrvKeyspace")
log.Errorf("failed to get SrvKeyspace %v with: %v", newTablet.Keyspace, err)
} else {

for _, partition := range srvKeyspace.GetPartitions() {
Expand Down

0 comments on commit c91eff9

Please sign in to comment.