Skip to content

Commit 5967837

Browse files
committed
pass the name of the status in the log message on set cluster status failure
1 parent bf5879a commit 5967837

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/cluster/cluster.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,12 +132,12 @@ func (c *Cluster) setStatus(status spec.PostgresStatus) {
132132
DoRaw()
133133

134134
if k8sutil.ResourceNotFound(err) {
135-
c.logger.Warningf("could not set status for the non-existing cluster")
135+
c.logger.Warningf("could not set %q status for the non-existing cluster", status)
136136
return
137137
}
138138

139139
if err != nil {
140-
c.logger.Warningf("could not set status for the cluster: %v", err)
140+
c.logger.Warningf("could not set %q status for the cluster: %v", status, err)
141141
}
142142
}
143143

0 commit comments

Comments
 (0)