Skip to content

Commit e680f8b

Browse files
committed
Removes print directives from log.Error
Directives were being applied to a print function that doesn't accept them. This commit removes those directives, which allows `make check` to complete without complaint.
1 parent ecec6ce commit e680f8b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/operator/cluster/standby.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,8 @@ func EnableStandby(clientset kubernetes.Interface, cluster crv1.Pgcluster) error
212212
// Delete the "leader" configMap
213213
if err = clientset.CoreV1().ConfigMaps(namespace).Delete(ctx, leaderConfigMapName, metav1.DeleteOptions{}); err != nil &&
214214
!kerrors.IsNotFound(err) {
215-
log.Error("Unable to delete configMap %s while enabling standby mode for cluster "+
216-
"%s: %v", leaderConfigMapName, clusterName, err)
215+
log.Error("Unable to delete configMap "+leaderConfigMapName+" while enabling standby mode for cluster "+
216+
leaderConfigMapName+":"+clusterName, err)
217217
return err
218218
}
219219

0 commit comments

Comments
 (0)