Skip to content

Commit e837751

Browse files
authored
Log result. (zalando#1387)
1 parent 636a9a8 commit e837751

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/cluster/majorversionupgrade.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,12 @@ func (c *Cluster) majorVersionUpgrade() error {
8686
podName := &spec.NamespacedName{Namespace: masterPod.Namespace, Name: masterPod.Name}
8787
c.logger.Infof("triggering major version upgrade on pod %s of %d pods", masterPod.Name, numberOfPods)
8888
upgradeCommand := fmt.Sprintf("/usr/bin/python3 /scripts/inplace_upgrade.py %d 2>&1 | tee last_upgrade.log", numberOfPods)
89-
_, err := c.ExecCommand(podName, "/bin/su", "postgres", "-c", upgradeCommand)
89+
result, err := c.ExecCommand(podName, "/bin/su", "postgres", "-c", upgradeCommand)
9090
if err != nil {
9191
return err
9292
}
93+
94+
c.logger.Infof("upgrade action triggered and command completed: %s", result[:50])
9395
}
9496
}
9597

0 commit comments

Comments
 (0)