Move "pairlist" logging to manager
This commit is contained in:
parent
1c089dcd51
commit
30d51b6939
@ -75,7 +75,6 @@ class ProducerPairList(IPairList):
|
|||||||
pairs = self._filter_pairlist(None)
|
pairs = self._filter_pairlist(None)
|
||||||
self.log_once(f"Received pairs: {pairs}", logger.debug)
|
self.log_once(f"Received pairs: {pairs}", logger.debug)
|
||||||
pairs = self._whitelist_for_active_markets(self.verify_whitelist(pairs, logger.info))
|
pairs = self._whitelist_for_active_markets(self.verify_whitelist(pairs, logger.info))
|
||||||
self.log_once(f"New Pairlist: {pairs}", logger.info)
|
|
||||||
return pairs
|
return pairs
|
||||||
|
|
||||||
def filter_pairlist(self, pairlist: List[str], tickers: Dict) -> List[str]:
|
def filter_pairlist(self, pairlist: List[str], tickers: Dict) -> List[str]:
|
||||||
|
@ -232,6 +232,4 @@ class VolumePairList(IPairList):
|
|||||||
# Limit pairlist to the requested number of pairs
|
# Limit pairlist to the requested number of pairs
|
||||||
pairs = pairs[:self._number_pairs]
|
pairs = pairs[:self._number_pairs]
|
||||||
|
|
||||||
self.log_once(f"Searching {self._number_pairs} pairs: {pairs}", logger.info)
|
|
||||||
|
|
||||||
return pairs
|
return pairs
|
||||||
|
@ -98,6 +98,8 @@ class PairListManager(LoggingMixin):
|
|||||||
# to ensure blacklist is respected.
|
# to ensure blacklist is respected.
|
||||||
pairlist = self.verify_blacklist(pairlist, logger.warning)
|
pairlist = self.verify_blacklist(pairlist, logger.warning)
|
||||||
|
|
||||||
|
self.log_once(f"Whitelist with {len(pairlist)} pairs: {pairlist}", logger.info)
|
||||||
|
|
||||||
self._whitelist = pairlist
|
self._whitelist = pairlist
|
||||||
|
|
||||||
def verify_blacklist(self, pairlist: List[str], logmethod) -> List[str]:
|
def verify_blacklist(self, pairlist: List[str], logmethod) -> List[str]:
|
||||||
|
Loading…
Reference in New Issue
Block a user