Always show freqtrade version

This commit is contained in:
Matthias 2022-09-20 14:14:54 +00:00
parent 8a91c8e220
commit 0bd6ad55a1
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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.