Comments (0)

Files changed (1)

File src/main/java/com/nubits/nubot/pricefeeds/PriceFeedManager.java Modified

View file
  • Ignore whitespace
  • Hide word diff
 
         //Check if mainfeed is allowed
         boolean mainFeedOK = false;
+        String allowedFeedStr = "";
         for (String allowed : allowedFeeds) {
+            allowedFeedStr += "; " + allowed;
             if (mainFeed.equalsIgnoreCase(allowed)) {
                 mainFeedOK = true;
-                break;
             }
         }
 
         if (mainFeedOK) {
             feedList.add(FeedFacade.getFeed(mainFeed)); //add the main feed at index 0
         } else {
-            LOG.error("mainFeed=" + mainFeed + " is not a valid entry for pair " + pair.toString());
+            LOG.error("mainFeed=" + mainFeed + " is not a valid entry for pair " + pair.toString() + " . List of allowed feeds : " + allowedFeedStr.substring(1));
             throw new NuBotConfigException("Error configuring mainFeed");
         }
 
                 }
             }
             if (!tempBackupValid) {
-                LOG.error("backupFeed=" + backup + " is not a valid entry for pair " + pair.toString());
+                LOG.error("backupFeed=" + backup + " is not a valid entry for pair " + pair.toString() + " . List of allowed feeds : " + allowedFeedStr.substring(1));
                 throw new NuBotConfigException("Error configuring backupfeeds");
             }
         }
         batch.setPrices(prices);
 
     }
-    
+
 
     public PriceBatch getPriceBatch() {
         return this.batch;