Skip to content

Commit

Permalink
log level changed during device initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
maciej-or committed Jul 11, 2024
1 parent 3c495b3 commit 32cecb3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions custom_components/hikvision_next/isapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,8 +341,6 @@ async def get_cameras(self):
)
)

_LOGGER.debug("Cameras: %s", self.cameras)

async def get_protocols(self):
"""Get protocols and ports."""
protocols = deep_get(
Expand Down Expand Up @@ -775,7 +773,7 @@ async def request(
_LOGGER.debug(">>> payload:\n%s", data)
_LOGGER.debug("\n%s", response)
except HTTPStatusError as ex:
_LOGGER.warning("--- [%s] %s\n%s", method.upper(), full_url, ex)
_LOGGER.info("--- [%s] %s\n%s", method.upper(), full_url, ex)
if self.pending_initialization:
# supress http errors during initialization
return {}
Expand Down

0 comments on commit 32cecb3

Please sign in to comment.