mirror of
https://github.com/freqtrade/freqtrade.git
synced 2026-01-26 00:40:23 +00:00
Merge pull request #11652 from Code0x58/bugfix/log_config
Fix config["log_config"] use so it doesn't break during deepcopy/backtesting
This commit is contained in:
@@ -123,7 +123,7 @@ def _add_formatter(log_config: dict[str, Any], format_name: str, format_: str):
|
|||||||
|
|
||||||
def _create_log_config(config: Config) -> dict[str, Any]:
|
def _create_log_config(config: Config) -> dict[str, Any]:
|
||||||
# Get log_config from user config or use default
|
# Get log_config from user config or use default
|
||||||
log_config = config.get("log_config", deepcopy(FT_LOGGING_CONFIG))
|
log_config = deepcopy(config.get("log_config", FT_LOGGING_CONFIG))
|
||||||
|
|
||||||
if logfile := config.get("logfile"):
|
if logfile := config.get("logfile"):
|
||||||
s = logfile.split(":")
|
s = logfile.split(":")
|
||||||
|
|||||||
Reference in New Issue
Block a user