Minor log improvements

This commit is contained in:
Sergey Dudoladov 2018-04-27 14:53:15 +02:00
parent 8f08bef67c
commit 35b2d917c9
2 changed files with 2 additions and 2 deletions

View File

@ -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")

View File

@ -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
} }