Fix logging command.

This commit is contained in:
Jan Mußler 2021-02-23 21:35:49 +01:00
parent c059ab7527
commit 9c41e87007
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ func (c *Cluster) majorVersionUpgrade() error {
podName := &spec.NamespacedName{Namespace: masterPod.Namespace, Name: masterPod.Name} podName := &spec.NamespacedName{Namespace: masterPod.Namespace, Name: masterPod.Name}
c.logger.Infof("triggering major version upgrade on pod %s", masterPod.Name) c.logger.Infof("triggering major version upgrade on pod %s", masterPod.Name)
command := fmt.Sprintf("su postgres -c \"python3 /scripts/inplace_upgrade.py %d 2>&1 | tee last_upgrade.log\"", numberOfPods) command := fmt.Sprintf("su postgres -c \"python3 /scripts/inplace_upgrade.py %d 2>&1 | tee last_upgrade.log\"", numberOfPods)
c.logger.Info("executing: %s", command) c.logger.Infof("executing: %s", command)
_, err := c.ExecCommand(podName, command) _, err := c.ExecCommand(podName, command)
if err != nil { if err != nil {
return err return err