mirror of
https://github.com/ep1cman/unifi-protect-backup.git
synced 2025-12-05 23:53:30 +00:00
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:
@@ -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.")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user