Don't debug-log during backtesting.

Even though log-messages are surpressed, calling "debug" will always
have to do something.
This commit is contained in:
Matthias 2020-10-18 16:38:16 +02:00
parent b80a219d03
commit 5d3a67d324
1 changed files with 2 additions and 2 deletions

View File

@ -350,7 +350,7 @@ class Backtesting:
# Prevents buying if the trade-slot was freed in this candle
open_trade_count_start += 1
open_trade_count += 1
logger.debug(f"{pair} - Backtesting emulates creation of new trade: {trade}.")
# logger.debug(f"{pair} - Backtesting emulates creation of new trade: {trade}.")
open_trades[pair].append(trade)
for trade in open_trades[pair]:
@ -359,7 +359,7 @@ class Backtesting:
trade_entry = self._get_sell_trade_entry(trade, row)
# Sell occured
if trade_entry:
logger.debug(f"{pair} - Backtesting sell {trade}")
# logger.debug(f"{pair} - Backtesting sell {trade}")
open_trade_count -= 1
open_trades[pair].remove(trade)
trades.append(trade_entry)