Skip to content

Commit 3e2a799

Browse files
committed
Fix config["log_config"] use so it doesn't break in backtesting
The issue as that `logging.config.dictConfig(log_config)` ends up using the dictionary in place and including non-picklable items (saw an RLock), blowing up backtesting.
1 parent 841f578 commit 3e2a799

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

freqtrade/loggers/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def _add_formatter(log_config: dict[str, Any], format_name: str, format_: str):
123123

124124
def _create_log_config(config: Config) -> dict[str, Any]:
125125
# Get log_config from user config or use default
126-
log_config = config.get("log_config", deepcopy(FT_LOGGING_CONFIG))
126+
log_config = deepcopy(config.get("log_config", FT_LOGGING_CONFIG))
127127

128128
if logfile := config.get("logfile"):
129129
s = logfile.split(":")

0 commit comments

Comments
 (0)