Optimize log messages
This commit is contained in:
parent
946e55115d
commit
62fd4a0540
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Reference in a new issue