adjust log level

This commit is contained in:
Sergey Dudoladov 2021-01-07 17:03:44 +01:00
parent c692c6ec34
commit ff62ab0bd4
1 changed files with 1 additions and 1 deletions

View File

@ -332,7 +332,7 @@ func (c *Cluster) isSafeToRecreatePods(pods *v1.PodList) bool {
c.logger.Errorf("failed to get Patroni state for pod: %s", err)
return false
} else if state == "creating replica" {
c.logger.Errorf("cannot re-create replica %s: it is currently being initialized", pod.Name)
c.logger.Warningf("cannot re-create replica %s: it is currently being initialized", pod.Name)
return false
}