Skip to content

Commit

Permalink
fix: error message
Browse files Browse the repository at this point in the history
  • Loading branch information
earayu committed Dec 26, 2023
1 parent 18f9570 commit b3d6b2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/vt/vttablet/tabletserver/role/listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ func (collector *Listener) reconcileLeadership(ctx context.Context) {
defer cancel()
changed, err := collector.changeTypeFunc(changeTypeCtx, collector.lastUpdate, tabletType)
if err != nil {
log.Error("change vttablet role to %s error", tabletType.String())
log.Errorf("change vttablet role to %s, error:%w", tabletType.String(), err)
}
if changed {
collector.lastUpdate = time.Now()
Expand Down

0 comments on commit b3d6b2f

Please sign in to comment.