From 59678378753212f3c91d652dafce34122ec5a3c6 Mon Sep 17 00:00:00 2001 From: Murat Kabilov Date: Thu, 17 Aug 2017 12:18:53 +0200 Subject: [PATCH] pass the name of the status in the log message on set cluster status failure --- pkg/cluster/cluster.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/cluster/cluster.go b/pkg/cluster/cluster.go index 02a06cac2..5fa8d6b36 100644 --- a/pkg/cluster/cluster.go +++ b/pkg/cluster/cluster.go @@ -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) } }