diff --git a/apps/api/main.py b/apps/api/main.py index 946e4fe..7d3a07f 100644 --- a/apps/api/main.py +++ b/apps/api/main.py @@ -364,6 +364,7 @@ async def publish_mqtt(topic: str, payload: dict[str, Any]) -> None: @app.get("/devices/{device_id}") async def get_device(device_id: str) -> DeviceInfo: + logger.debug(f"Fetching info for device {device_id}") devices = load_devices() device = next((d for d in devices if d["device_id"] == device_id), None) if not device: @@ -382,6 +383,7 @@ async def get_devices() -> list[DeviceInfo]: Returns: list: List of device information including features """ + logger.debug("Fetching list of devices") devices = load_devices() return [ DeviceInfo(