From 46e8d9a5e4e6f0c071d26473d3bda9e27f5070f3 Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 18 Aug 2022 09:09:37 +0200 Subject: [PATCH] Reduce verbosity when whitelist is empty --- freqtrade/freqtradebot.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/freqtrade/freqtradebot.py b/freqtrade/freqtradebot.py index a214efd76..4e3af64ea 100644 --- a/freqtrade/freqtradebot.py +++ b/freqtrade/freqtradebot.py @@ -418,7 +418,7 @@ class FreqtradeBot(LoggingMixin): whitelist = copy.deepcopy(self.active_pair_whitelist) if not whitelist: - logger.info("Active pair whitelist is empty.") + self.log_once("Active pair whitelist is empty.", logger.info) return trades_created # Remove pairs for currently opened trades from the whitelist for trade in Trade.get_open_trades(): @@ -427,8 +427,8 @@ class FreqtradeBot(LoggingMixin): logger.debug('Ignoring %s in pair whitelist', trade.pair) if not whitelist: - logger.info("No currency pair in active pair whitelist, " - "but checking to exit open trades.") + self.log_once("No currency pair in active pair whitelist, " + "but checking to exit open trades.", logger.info) return trades_created if PairLocks.is_global_lock(side='*'): # This only checks for total locks (both sides).