diff --git a/freqtrade/optimize/hyperopt/hyperopt.py b/freqtrade/optimize/hyperopt/hyperopt.py index cdb6d6a2f1d..0af2db4ba7d 100644 --- a/freqtrade/optimize/hyperopt/hyperopt.py +++ b/freqtrade/optimize/hyperopt/hyperopt.py @@ -20,7 +20,6 @@ from freqtrade.constants import FTHYPT_FILEVERSION, LAST_BT_RESULT_FN, Config from freqtrade.enums import HyperoptState from freqtrade.exceptions import OperationalException -from freqtrade.loggers import error_console from freqtrade.misc import file_dump_json, plural from freqtrade.optimize.hyperopt.hyperopt_logger import logging_mp_handle, logging_mp_setup from freqtrade.optimize.hyperopt.hyperopt_optimizer import HyperOptimizer @@ -282,10 +281,7 @@ def start(self) -> None: logger.info(f"Effective number of parallel workers used: {jobs}") # Define progressbar - with get_progress_tracker( - console=error_console, - cust_callables=[self._hyper_out], - ) as pbar: + with get_progress_tracker(cust_callables=[self._hyper_out]) as pbar: task = pbar.add_task("Epochs", total=self.total_epochs) start = 0 diff --git a/freqtrade/util/progress_tracker.py b/freqtrade/util/progress_tracker.py index 3f46e0b82de..cc5c79a181c 100644 --- a/freqtrade/util/progress_tracker.py +++ b/freqtrade/util/progress_tracker.py @@ -7,6 +7,7 @@ TimeRemainingColumn, ) +from freqtrade.loggers import error_console from freqtrade.util.rich_progress import CustomProgress @@ -30,5 +31,6 @@ def get_progress_tracker(**kwargs) -> CustomProgress: "•", TimeRemainingColumn(), expand=True, + console=error_console, **kwargs, )