From 30d51b6939819b541b9582284b93d17bc6927783 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 25 Sep 2022 09:43:39 +0200 Subject: [PATCH] Move "pairlist" logging to manager --- freqtrade/plugins/pairlist/ProducerPairList.py | 1 - freqtrade/plugins/pairlist/VolumePairList.py | 2 -- freqtrade/plugins/pairlistmanager.py | 2 ++ 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/freqtrade/plugins/pairlist/ProducerPairList.py b/freqtrade/plugins/pairlist/ProducerPairList.py index 0dc90ac0f..d0fb4ada2 100644 --- a/freqtrade/plugins/pairlist/ProducerPairList.py +++ b/freqtrade/plugins/pairlist/ProducerPairList.py @@ -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]: diff --git a/freqtrade/plugins/pairlist/VolumePairList.py b/freqtrade/plugins/pairlist/VolumePairList.py index 9dcada291..b290f76aa 100644 --- a/freqtrade/plugins/pairlist/VolumePairList.py +++ b/freqtrade/plugins/pairlist/VolumePairList.py @@ -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 diff --git a/freqtrade/plugins/pairlistmanager.py b/freqtrade/plugins/pairlistmanager.py index 763307d3f..5ed319e93 100644 --- a/freqtrade/plugins/pairlistmanager.py +++ b/freqtrade/plugins/pairlistmanager.py @@ -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]: