From e15af7c5f62b26d88a9bd6a7a264a8aa5f87270c Mon Sep 17 00:00:00 2001 From: mika <303014439@qq.com> Date: Thu, 16 Oct 2025 20:43:24 +0800 Subject: [PATCH] Fixed the issue that logs cannot be recorded in multi-threaded mode --- api/logging_config.py | 2 +- api/requirements.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/api/logging_config.py b/api/logging_config.py index d2726c626..4144464ef 100644 --- a/api/logging_config.py +++ b/api/logging_config.py @@ -1,7 +1,7 @@ import logging import os from pathlib import Path -from logging.handlers import RotatingFileHandler +from concurrent_log_handler import ConcurrentRotatingFileHandler as RotatingFileHandler class IgnoreLogChangeDetectedFilter(logging.Filter): diff --git a/api/requirements.txt b/api/requirements.txt index 2a0695617..c1ff5a148 100644 --- a/api/requirements.txt +++ b/api/requirements.txt @@ -17,4 +17,5 @@ boto3>=1.34.0 websockets>=11.0.3 azure-identity>=1.12.0 azure-core>=1.24.0 +concurrent-log-handler>=0.9.20