fix: disable freqtrade logging in hyperopt subprocesses

closes #12717
This commit is contained in:
Matthias
2026-01-18 20:12:31 +01:00
parent d5686d548c
commit 6ee34aa482

View File

@@ -21,6 +21,11 @@ def logging_mp_setup(log_queue: Queue, verbosity: int):
root = logging.getLogger()
root.setLevel(verbosity)
root.addHandler(h)
# Disable freqtrade logging outside of the main process
# This only leaves logging from the strategy (unless it's prefixed with "freqtrade.")
# and eventually from other libraries.
if verbosity > logging.DEBUG:
logging.getLogger("freqtrade").setLevel(logging.WARNING)
def logging_mp_handle(q: Queue):