From fe3bca7144c425e302f36218a537a7c8623644f4 Mon Sep 17 00:00:00 2001 From: Sumner Evans Date: Mon, 13 Mar 2023 16:23:22 -0600 Subject: [PATCH] user: add more is_logged_in logging Signed-off-by: Sumner Evans --- linkedin_matrix/user.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/linkedin_matrix/user.py b/linkedin_matrix/user.py index 2318178..bd1b330 100644 --- a/linkedin_matrix/user.py +++ b/linkedin_matrix/user.py @@ -233,11 +233,14 @@ async def reconnect(self): self._is_refreshing = False async def is_logged_in(self) -> bool: + self.log.debug("Checking if logged in") if not self.client: + self.log.debug("Not logged in: no client") return False if self._is_logged_in is None: try: self._is_logged_in = await self.client.logged_in() + self.log.debug("checked if client is logged in: %s", self._is_logged_in) except Exception: self.log.exception("Exception checking login status") self._is_logged_in = False