refactor: Simplify service initialization in LoraRoutes and RecipeRoutes, and adjust logging level in ServiceRegistry

This commit is contained in:
Will Miao
2025-04-12 09:01:09 +08:00
parent a8d21fb1d6
commit d5ce6441e3
4 changed files with 5 additions and 18 deletions

View File

@@ -34,7 +34,7 @@ class ServiceRegistry:
registry = cls.get_instance()
async with cls._lock:
if service_name not in registry._services:
logger.warning(f"Service {service_name} not found in registry")
logger.debug(f"Service {service_name} not found in registry")
return None
return registry._services[service_name]