From 0bd6ad55a14a84dcd77cb057453f46ae8acfd3a6 Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 20 Sep 2022 14:14:54 +0000 Subject: [PATCH] Always show freqtrade version --- freqtrade/freqtradebot.py | 4 +--- freqtrade/main.py | 2 ++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/freqtrade/freqtradebot.py b/freqtrade/freqtradebot.py index 83abc9bc5..d4dc6ef73 100644 --- a/freqtrade/freqtradebot.py +++ b/freqtrade/freqtradebot.py @@ -11,7 +11,7 @@ from typing import Any, Dict, List, Optional, Tuple from schedule import Scheduler -from freqtrade import __version__, constants +from freqtrade import constants from freqtrade.configuration import validate_config_consistency from freqtrade.constants import BuySell, Config, LongShort from freqtrade.data.converter import order_book_to_dataframe @@ -52,8 +52,6 @@ class FreqtradeBot(LoggingMixin): """ self.active_pair_whitelist: List[str] = [] - logger.info('Starting freqtrade %s', __version__) - # Init bot state self.state = State.STOPPED diff --git a/freqtrade/main.py b/freqtrade/main.py index 162b4d029..754c536d0 100755 --- a/freqtrade/main.py +++ b/freqtrade/main.py @@ -12,6 +12,7 @@ from typing import Any, List if sys.version_info < (3, 8): # pragma: no cover sys.exit("Freqtrade requires Python version >= 3.8") +from freqtrade import __version__ from freqtrade.commands import Arguments from freqtrade.exceptions import FreqtradeException, OperationalException from freqtrade.loggers import setup_logging_pre @@ -34,6 +35,7 @@ def main(sysargv: List[str] = None) -> None: # Call subcommand. if 'func' in args: + logger.info(f'freqtrade {__version__}') return_code = args['func'](args) else: # No subcommand was issued.