Skip to content
Snippets Groups Projects
Commit 35b2d917 authored by Sergey Dudoladov's avatar Sergey Dudoladov
Browse files

Minor log improvements

parent 8f08bef6
No related branches found
Tags v0.24.1
No related merge requests found
...@@ -293,7 +293,7 @@ func (c *Cluster) Create() error { ...@@ -293,7 +293,7 @@ func (c *Cluster) Create() error {
if err = c.createPodServiceAccounts(); err != nil { if err = c.createPodServiceAccounts(); err != nil {
return fmt.Errorf("could not create pod service account %v : %v", c.OpConfig.PodServiceAccountName, err) return fmt.Errorf("could not create pod service account %v : %v", c.OpConfig.PodServiceAccountName, err)
} }
c.logger.Infof("pod service accounts have been successfully synced") c.logger.Infof("pod service accounts have been successfully found/created")
if c.Statefulset != nil { if c.Statefulset != nil {
return fmt.Errorf("statefulset already exists in the cluster") return fmt.Errorf("statefulset already exists in the cluster")
......
...@@ -155,7 +155,7 @@ func (c *Cluster) masterCandidate(oldNodeName string) (*v1.Pod, error) { ...@@ -155,7 +155,7 @@ func (c *Cluster) masterCandidate(oldNodeName string) (*v1.Pod, error) {
} }
if len(replicas) == 0 { if len(replicas) == 0 {
c.logger.Warningf("single master pod for cluster %q, migration will cause disruption of the service") c.logger.Warningf("single master pod for cluster %q, migration will cause disruption of the service", c.Name)
return nil, nil return nil, nil
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment