logs: cosmetic changes

"30 seconds" was errorneously hardcoded in the text of the log message, while actually it's RETRY_TIMEOUT which may differ
This commit is contained in:
hroff-1902 2019-02-13 12:38:44 +03:00 committed by GitHub
parent b9a5899c99
commit 8fc8c985d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -191,7 +191,7 @@ class FreqtradeBot(object):
Trade.session.flush() Trade.session.flush()
except TemporaryError as error: except TemporaryError as error:
logger.warning('%s, retrying in 30 seconds...', error) logger.warning(f"Error: {error}, retrying in {constants.RETRY_TIMEOUT} seconds...")
time.sleep(constants.RETRY_TIMEOUT) time.sleep(constants.RETRY_TIMEOUT)
except OperationalException: except OperationalException:
tb = traceback.format_exc() tb = traceback.format_exc()