From 95ad420cd53836465f2e137e2b927003864345f9 Mon Sep 17 00:00:00 2001 From: Henry Varona Date: Wed, 19 Sep 2018 20:29:57 -0400 Subject: [PATCH] Added some log to cryptonetmanager --- .../cy/agorise/crystalwallet/network/CryptoNetManager.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/cy/agorise/crystalwallet/network/CryptoNetManager.java b/app/src/main/java/cy/agorise/crystalwallet/network/CryptoNetManager.java index bbde434..24bf672 100644 --- a/app/src/main/java/cy/agorise/crystalwallet/network/CryptoNetManager.java +++ b/app/src/main/java/cy/agorise/crystalwallet/network/CryptoNetManager.java @@ -3,6 +3,7 @@ package cy.agorise.crystalwallet.network; import android.support.annotation.NonNull; import java.util.ArrayList; +import java.util.Arrays; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; @@ -31,8 +32,10 @@ public abstract class CryptoNetManager { public static String getURL(CryptoNet crypto, int index){ if(TestedURLs.containsKey(crypto) && TestedURLs.get(crypto).size()>index){ + System.out.println("Servers url list " + Arrays.toString(TestedURLs.get(crypto).toArray())); return TestedURLs.get(crypto).get(index).getUrl(); } + System.out.println("Servers " + crypto.getLabel()+" dioesn't have testedurl"); if(CryptoNetURLs.containsKey(crypto) && !CryptoNetURLs.get(crypto).isEmpty()){ return CryptoNetURLs.get(crypto).iterator().next();