onvif: more debug info (#49658)

Signed-off-by: Xuefer <xuefer@gmail.com>
pull/51051/head
Xuefer 2021-05-25 03:24:56 +08:00 committed by GitHub
parent 12e2c59a4c
commit a7eedeeaba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -104,8 +104,11 @@ class ONVIFDevice:
# Fetch basic device info and capabilities
self.info = await self.async_get_device_info()
LOGGER.debug("Camera %s info = %s", self.name, self.info)
self.capabilities = await self.async_get_capabilities()
LOGGER.debug("Camera %s capabilities = %s", self.name, self.capabilities)
self.profiles = await self.async_get_profiles()
LOGGER.debug("Camera %s profiles = %s", self.name, self.profiles)
# No camera profiles to add
if not self.profiles: