mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-04 04:27:42 +03:00
more debug
This commit is contained in:
parent
8a61ccfe61
commit
16274c1697
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user