Skip to content

Commit

Permalink
Adds debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
akashdeepgoel committed Apr 18, 2023
1 parent 0552980 commit 85b00d5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public List<HostToken> getTokens(Set<Host> activeHosts) {
// hence trying them all
Set<HostToken> allTokens = new HashSet<HostToken>();
Set<Host> remainingHosts = new HashSet<>(activeHosts);

Logger.info("[DynoConnectDebug] Number of active hosts = " + activeHosts.size());
for (Host host : activeHosts) {
try {
List<HostToken> hostTokens = parseTokenListFromJson(getTopologyJsonPayload((host.getHostAddress())));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ public HttpEndpointBasedTokenMapSupplier(String url, int port) {
@Override
public String getTopologyJsonPayload(String hostname) {
try {
Logger.info("[DynoConnectDebug] Hostname is = " + hostname);
return getResponseViaHttp(hostname);
} catch (Exception e) {
throw new RuntimeException(e);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ private static void setHashtagConnectionPool(HostSupplier hostSupplier, Connecti
List<Host> hosts = (List<Host>) hostSupplier.getHosts();
Collections.sort(hosts);

logger.info("[DynoConnectDebug] Got number of hosts = " + hosts.size());
// Take the token map supplier (aka the token topology from
// Dynomite)
TokenMapSupplier tokenMapSupplier = config.getTokenSupplier();
Expand Down

0 comments on commit 85b00d5

Please sign in to comment.