pass the name of the status in the log message on set cluster status failure

This commit is contained in:
Murat Kabilov 2017-08-17 12:18:53 +02:00
parent bf5879a71f
commit 5967837875
1 changed files with 2 additions and 2 deletions

View File

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