more debug

This commit is contained in:
Josh Hawkins 2025-05-05 20:47:24 -05:00
parent 8a61ccfe61
commit 16274c1697

View File

@ -580,6 +580,12 @@ class OnvifController:
) -> None: ) -> None:
"""Handle ONVIF commands asynchronously""" """Handle ONVIF commands asynchronously"""
# logger.debug(f"handling async: {camera_name}, {command}, {param}") # logger.debug(f"handling async: {camera_name}, {command}, {param}")
current_loop = asyncio.get_running_loop()
expected_loop = self.loop
if current_loop is not expected_loop:
logger.error(
f"Wrong event loop in _move! Expected {expected_loop}, got {current_loop}"
)
if camera_name not in self.cams.keys(): if camera_name not in self.cams.keys():
logger.error(f"ONVIF is not configured for {camera_name}") logger.error(f"ONVIF is not configured for {camera_name}")
return return