Skip to content

Commit 2bcf78e

Browse files
committed
more logging
1 parent 457aa3b commit 2bcf78e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

pkg/cluster/fetcher/multi.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,14 @@ func (f multiClusterFetcher) Fetch(ctx context.Context) ([]mngr.Cluster, error)
4545
return clusters, nil
4646
}
4747

48-
return append(clusters, res...), nil
48+
allClusters := append(clusters, res...)
49+
clusterNames := []string{}
50+
for _, c := range allClusters {
51+
clusterNames = append(clusterNames, c.Name)
52+
}
53+
f.log.Info("Found clusters", "clusters", clusterNames)
54+
55+
return allClusters, nil
4956
}
5057

5158
func (f *multiClusterFetcher) self() mngr.Cluster {

0 commit comments

Comments
 (0)