From 6e7af1a80f8aadfdf71d8f0683facb152d7d2de7 Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期三, 12 三月 2025 09:54:34 +0800 Subject: [PATCH] 修改自动撤逻辑 --- log_module/async_log_util.py | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/log_module/async_log_util.py b/log_module/async_log_util.py index 6640308..223bd00 100644 --- a/log_module/async_log_util.py +++ b/log_module/async_log_util.py @@ -6,7 +6,7 @@ import threading import time -from log_module.log import logger_debug, logger_system +from log_module.log import logger_debug, logger_system, printlog from utils import tool @@ -38,9 +38,10 @@ # 杩愯鍚屾鏃ュ織 def run_sync(self, add_to_common_log=False): - print("run_sync", add_to_common_log) + printlog("run_sync", add_to_common_log) logger_system.info(f"run_sync 绾跨▼ID:{tool.get_thread_id()}") while True: + # val = self.__log_queue.get() try: val = self.__log_queue.get() if not add_to_common_log: -- Gitblit v1.8.0