From 8d852359b993c6ff88551bf43ce94a226304815c Mon Sep 17 00:00:00 2001 From: Ashish Ranjan Date: Tue, 20 Aug 2019 17:01:02 +0530 Subject: [PATCH] fix ceph cluster namespace not showing in the logs This commit fixes cluster namespace not showing in the rook operator logs. Signed-off-by: Ashish Ranjan --- pkg/operator/ceph/cluster/controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/operator/ceph/cluster/controller.go b/pkg/operator/ceph/cluster/controller.go index a99f3940f..590ac8ad7 100644 --- a/pkg/operator/ceph/cluster/controller.go +++ b/pkg/operator/ceph/cluster/controller.go @@ -372,7 +372,7 @@ func (c *ClusterController) onK8sNodeUpdate(oldObj, newObj interface{}) { for _, cluster := range c.clusterMap { if cluster.Info == nil { - logger.Info("Cluster %s is not ready. Skipping orchestration.", cluster.Namespace) + logger.Infof("Cluster %s is not ready. Skipping orchestration.", cluster.Namespace) continue } if valid, _ := k8sutil.ValidNode(*newNode, cephv1.GetOSDPlacement(cluster.Spec.Placement)); valid == true {