From 62fd4a0540ed27c3e44700047300339d1f56a76d Mon Sep 17 00:00:00 2001 From: yangdx Date: Wed, 30 Apr 2025 13:53:03 +0800 Subject: [PATCH] Optimize log messages --- lightrag/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lightrag/utils.py b/lightrag/utils.py index 7520da4b..4233f3ff 100644 --- a/lightrag/utils.py +++ b/lightrag/utils.py @@ -346,7 +346,7 @@ def priority_limit_async_func_call(max_size: int, max_queue_size: int = 1000): logger.error(f"limit_async: Critical error in worker: {str(e)}") await asyncio.sleep(0.1) # Prevent high CPU usage finally: - logger.warning("limit_async: Worker exiting") + logger.debug("limit_async: Worker exiting") async def health_check(): """Periodically check worker health status and recover""" @@ -379,7 +379,7 @@ def priority_limit_async_func_call(max_size: int, max_queue_size: int = 1000): except Exception as e: logger.error(f"limit_async: Error in health check: {str(e)}") finally: - logger.warning("limit_async: Health check task exiting") + logger.debug("limit_async: Health check task exiting") initialized = False async def ensure_workers():