Skip to content

Commit

Permalink
change log output
Browse files Browse the repository at this point in the history
  • Loading branch information
noname0443 committed Sep 17, 2024
1 parent b461bfc commit 872c27a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions internal/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -1212,14 +1212,12 @@ func (app *App) performSwitchover(clusterState map[string]*NodeState, activeNode
if app.config.ForceSwitchover {
err := node.SetOffline()
if err != nil {
app.logger.Infof("switchover: failed to set node %s offline: %v", host, err)
return fmt.Errorf("failed to set node %s read-only: %v", host, err)
return fmt.Errorf("switchover: failed to set node %s offline: %v", host, err)
}

err = node.SemiSyncDisable()
if err != nil {
app.logger.Infof("switchover: failed to disable semi-sync on node %s: %v", host, err)
return fmt.Errorf("failed to set node %s read-only: %v", host, err)
return fmt.Errorf("switchover: failed to disable semi-sync on node %s: %v", host, err)
}
}

Expand Down

0 comments on commit 872c27a

Please sign in to comment.