pass the name of the status in the log message on set cluster status failure
This commit is contained in:
parent
bf5879a71f
commit
5967837875
|
|
@ -132,12 +132,12 @@ func (c *Cluster) setStatus(status spec.PostgresStatus) {
|
|||
DoRaw()
|
||||
|
||||
if k8sutil.ResourceNotFound(err) {
|
||||
c.logger.Warningf("could not set status for the non-existing cluster")
|
||||
c.logger.Warningf("could not set %q status for the non-existing cluster", status)
|
||||
return
|
||||
}
|
||||
|
||||
if err != nil {
|
||||
c.logger.Warningf("could not set status for the cluster: %v", err)
|
||||
c.logger.Warningf("could not set %q status for the cluster: %v", status, err)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue