Administrator
2024-12-19 ef65526a366e88e3e353e385641280bdeb8cce58
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: