From 8f1bd9473a907d7c87afeb4182521512dee2ad3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niccolo=CC=80=20Zapponi?= Date: Thu, 5 Nov 2020 08:33:12 +0000 Subject: [PATCH] Updated logging levels --- pyicloud/base.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pyicloud/base.py b/pyicloud/base.py index 2bbfdce..8afe54b 100644 --- a/pyicloud/base.py +++ b/pyicloud/base.py @@ -264,17 +264,17 @@ class PyiCloudService(object): login_successful = False if self.session_data.get("session_token"): - LOGGER.info("Checking session token validity") + LOGGER.debug("Checking session token validity") try: req = self.session.post(f"{self.SETUP_ENDPOINT}/validate", data="null") - LOGGER.info("Session token is still valid") + LOGGER.debug("Session token is still valid") self.data = req.json() login_successful = True except PyiCloudAPIResponseException: - msg = "Invalid authentication token, will log in from scratch." + LOGGER.debug("Invalid authentication token, will log in from scratch.") if not login_successful: - LOGGER.info("Authenticating as %s", self.user["accountName"]) + LOGGER.debug("Authenticating as %s", self.user["accountName"]) data = dict(self.user) @@ -306,7 +306,7 @@ class PyiCloudService(object): self._webservices = self.data["webservices"] - LOGGER.info("Authentication completed successfully") + LOGGER.debug("Authentication completed successfully") def _authenticate_with_token(self): """Authenticate using session token."""