mirror of
https://github.com/HKUDS/LightRAG.git
synced 2025-12-27 14:52:34 +00:00
Optimize log messages
This commit is contained in:
parent
946e55115d
commit
62fd4a0540
@ -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():
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user