From 872c27aaf9971d2b19dde155eb67f3d2504a07cc Mon Sep 17 00:00:00 2001 From: noname0443 Date: Tue, 17 Sep 2024 16:33:04 +0300 Subject: [PATCH] change log output --- internal/app/app.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/internal/app/app.go b/internal/app/app.go index f143eb48..85237f1a 100644 --- a/internal/app/app.go +++ b/internal/app/app.go @@ -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) } }