Add the reason why there is a global pairlock when lock is available

This commit is contained in:
Jose Hidalgo 2021-04-21 15:02:33 -06:00
parent 9f6f3e0862
commit 896ec58cad

View File

@ -378,7 +378,7 @@ class FreqtradeBot(LoggingMixin):
if lock:
self.log_once(f"Global pairlock active until "
f"{lock.lock_end_time.strftime(constants.DATETIME_PRINT_FORMAT)}. "
"Not creating new trades.", logger.info)
f"Not creating new trades, reason: {lock.reason}.", logger.info)
else:
self.log_once("Global pairlock active. Not creating new trades.", logger.info)
return trades_created