Skip to content
This repository has been archived by the owner on May 29, 2024. It is now read-only.

Commit

Permalink
Revert "chore: added logging for debugging purposes"
Browse files Browse the repository at this point in the history
This reverts commit 0a5ef0f.
  • Loading branch information
quintesse committed Apr 9, 2020
1 parent 0a5ef0f commit f0febca
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import java.util.List;
import java.util.Objects;
import java.util.Set;
import java.util.logging.Logger;

import javax.inject.Inject;
import javax.inject.Singleton;
Expand Down Expand Up @@ -41,8 +40,6 @@ public class OpenShiftClusterRegistryImpl implements OpenShiftClusterRegistry {

private static final String SUBSCRIPTION_TOKEN = OpenShiftEnvironment.LAUNCHER_MISSIONCONTROL_OPENSHIFT_CLUSTERS_SUBSCRIPTION_TOKEN.value();

private static final Logger log = Logger.getLogger(OpenShiftClusterRegistryImpl.class.getName());

@Inject
public OpenShiftClusterRegistryImpl(HttpClient httpClient) {
this.httpClient = httpClient;
Expand Down Expand Up @@ -104,7 +101,6 @@ public Set<OpenShiftCluster> getClusters() {

@Override
public Set<OpenShiftCluster> getSubscribedClusters(Principal principal) {
log.info("getSubscribedClusters principal=" + (principal != null ? principal.getName() : "null") + ", token=" + Objects.toString(SUBSCRIPTION_TOKEN));
if (SUBSCRIPTION_TOKEN == null || principal == null) {
// Token does not exist or user is not authenticated, just return all clusters
return getClusters();
Expand All @@ -115,7 +111,6 @@ public Set<OpenShiftCluster> getSubscribedClusters(Principal principal) {
Set<OpenShiftCluster> clusterSet = new HashSet<>();
for (JsonNode subscription : tree.get("subscriptions")) {
String clusterId = subscription.get("plan").get("name").asText();
log.info("getSubscribedClusters clusterId=" + clusterId + ", present=" + Objects.toString(findClusterById(clusterId)));
findClusterById(clusterId).ifPresent(clusterSet::add);
}
return clusterSet;
Expand Down

0 comments on commit f0febca

Please sign in to comment.