Improve logging to ensure which branch is used for buy order cancels

This commit is contained in:
Matthias 2020-04-09 09:22:38 +02:00
parent 68a5e0c51b
commit 5cff72a42e

View File

@ -904,6 +904,7 @@ class FreqtradeBot:
logger.info('Buy order %s for %s.', reason, trade)
if corder.get('remaining', order['remaining']) == order['amount']:
logger.info('Buy order removed from database %s', trade)
# if trade is not partially completed, just delete the trade
Trade.session.delete(trade)
Trade.session.flush()