Merge pull request #4777 from c0d5x/informative-global-pairlock-msg

Add the reason why there is a global pairlock when lock is available
This commit is contained in:
Matthias 2021-04-22 19:24:13 +02:00 committed by GitHub
commit f2d5f476d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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