Demote websocket retry logging

Previously `-v` showed a lot of spam meesaged for each time the check
was done, this is not particularly useful.
This commit is contained in:
Sebastian Goscik
2022-02-24 23:54:29 +00:00
parent 78e7b8fbb0
commit 9e164de686

View File

@@ -298,9 +298,9 @@ class UnifiProtectBackup:
# We need to catch websocket disconnect and trigger a reconnect.
@aiocron.crontab("* * * * *")
async def check_websocket_and_reconnect():
logger.debug("Checking the status of the websocket...")
logger.extra_debug("Checking the status of the websocket...")
if self._protect.check_ws():
logger.debug("Websocket is connected.")
logger.extra_debug("Websocket is connected.")
else:
logger.warn("Lost connection to Unifi Protect.")