Reduce verbosity when whitelist is empty
This commit is contained in:
parent
18fab86431
commit
46e8d9a5e4
@ -418,7 +418,7 @@ class FreqtradeBot(LoggingMixin):
|
|||||||
|
|
||||||
whitelist = copy.deepcopy(self.active_pair_whitelist)
|
whitelist = copy.deepcopy(self.active_pair_whitelist)
|
||||||
if not whitelist:
|
if not whitelist:
|
||||||
logger.info("Active pair whitelist is empty.")
|
self.log_once("Active pair whitelist is empty.", logger.info)
|
||||||
return trades_created
|
return trades_created
|
||||||
# Remove pairs for currently opened trades from the whitelist
|
# Remove pairs for currently opened trades from the whitelist
|
||||||
for trade in Trade.get_open_trades():
|
for trade in Trade.get_open_trades():
|
||||||
@ -427,8 +427,8 @@ class FreqtradeBot(LoggingMixin):
|
|||||||
logger.debug('Ignoring %s in pair whitelist', trade.pair)
|
logger.debug('Ignoring %s in pair whitelist', trade.pair)
|
||||||
|
|
||||||
if not whitelist:
|
if not whitelist:
|
||||||
logger.info("No currency pair in active pair whitelist, "
|
self.log_once("No currency pair in active pair whitelist, "
|
||||||
"but checking to exit open trades.")
|
"but checking to exit open trades.", logger.info)
|
||||||
return trades_created
|
return trades_created
|
||||||
if PairLocks.is_global_lock(side='*'):
|
if PairLocks.is_global_lock(side='*'):
|
||||||
# This only checks for total locks (both sides).
|
# This only checks for total locks (both sides).
|
||||||
|
Loading…
Reference in New Issue
Block a user