Move "pairlist" logging to manager

This commit is contained in:
Matthias 2022-09-25 09:43:39 +02:00
parent 1c089dcd51
commit 30d51b6939
3 changed files with 2 additions and 3 deletions

View File

@ -75,7 +75,6 @@ class ProducerPairList(IPairList):
pairs = self._filter_pairlist(None)
self.log_once(f"Received pairs: {pairs}", logger.debug)
pairs = self._whitelist_for_active_markets(self.verify_whitelist(pairs, logger.info))
self.log_once(f"New Pairlist: {pairs}", logger.info)
return pairs
def filter_pairlist(self, pairlist: List[str], tickers: Dict) -> List[str]:

View File

@ -232,6 +232,4 @@ class VolumePairList(IPairList):
# Limit pairlist to the requested number of pairs
pairs = pairs[:self._number_pairs]
self.log_once(f"Searching {self._number_pairs} pairs: {pairs}", logger.info)
return pairs

View File

@ -98,6 +98,8 @@ class PairListManager(LoggingMixin):
# to ensure blacklist is respected.
pairlist = self.verify_blacklist(pairlist, logger.warning)
self.log_once(f"Whitelist with {len(pairlist)} pairs: {pairlist}", logger.info)
self._whitelist = pairlist
def verify_blacklist(self, pairlist: List[str], logmethod) -> List[str]: