Skip to content

Commit

Permalink
Temporary logging
Browse files Browse the repository at this point in the history
  • Loading branch information
kingherc committed Jun 27, 2022
1 parent c59b01f commit ab0f357
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -772,6 +772,16 @@ private void checkSingleNodeCluster() {

// Ignore case where the seed hosts are from the default seed addresses
Set<String> defaultAddresses = Set.copyOf(transportService.getDefaultSeedAddresses());

// TODO: temporary. Remove section before merging.
logger.info("The default addresses are: {}.", defaultAddresses);
logger.info("Discovery seed hosts setting exists: {}.", DISCOVERY_SEED_HOSTS_SETTING.exists(settings));
logger.info(
"The address of this local node is: [{}]. The addresses of the last resolved discovery seed hosts are: {}.",
this.getLocalNode().getAddress(),
lastResolvedAddresses
);

if (lastResolvedAddresses.stream().allMatch(t -> defaultAddresses.contains(t.toString()))) {
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ private List<String> getHostsList() {
@Override
public List<TransportAddress> getSeedAddresses(HostsResolver hostsResolver) {
final List<TransportAddress> transportAddresses = hostsResolver.resolveHosts(getHostsList());
logger.debug("seed addresses: {}", transportAddresses);
logger.info("seed addresses: {}", transportAddresses);
return transportAddresses;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public SettingsBasedSeedHostsProvider(Settings settings, TransportService transp
configuredHosts = transportService.getDefaultSeedAddresses();
}

logger.debug("using initial hosts {}", configuredHosts);
logger.info("using initial hosts {}", configuredHosts);
}

@Override
Expand Down

0 comments on commit ab0f357

Please sign in to comment.