Move divider log message

This commit is contained in:
hroff-1902 2020-02-20 08:17:24 +03:00
parent 751e2b2359
commit bca5f804a8

View File

@ -109,14 +109,14 @@ class Worker:
""" """
start = time.time() start = time.time()
result = func(*args, **kwargs) result = func(*args, **kwargs)
logger.debug("========================================")
end = time.time() end = time.time()
duration = max(min_secs - (end - start), 0.0) duration = max(min_secs - (end - start), 0.0)
logger.debug('Throttling %s for %.2f seconds', func.__name__, duration) logger.debug(f"Throttling {func.__name__} for {duration:.2f} seconds")
time.sleep(duration) time.sleep(duration)
return result return result
def _process(self) -> None: def _process(self) -> None:
logger.debug("========================================")
try: try:
self.freqtrade.process() self.freqtrade.process()
except TemporaryError as error: except TemporaryError as error: