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()
|
DoRaw()
|
||||||
|
|
||||||
if k8sutil.ResourceNotFound(err) {
|
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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if err != nil {
|
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