From 4cc92197876e6121e171b5534735eefc0ba8d3d0 Mon Sep 17 00:00:00 2001 From: Andy Lulham Date: Sun, 12 May 2024 11:37:28 +0100 Subject: [PATCH] chore: slightly clearer logging --- x_notes/tweets.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/x_notes/tweets.py b/x_notes/tweets.py index 3d11ffb09..3e30457a4 100644 --- a/x_notes/tweets.py +++ b/x_notes/tweets.py @@ -10,7 +10,6 @@ async def login() -> API: - logger.info("Attempting to log in") api = API() username = environ["USER"] @@ -25,10 +24,12 @@ async def login() -> API: account_kwargs["proxy"] = proxy cookies = environ.get("COOKIES") if cookies: + logger.info("Cookie found. No need to login") account_kwargs["cookies"] = cookies await api.pool.add_account(**account_kwargs) if not cookies: + logger.info("Attempting to log in") await api.pool.login_all() account = await api.pool.get(username) if environ.get("UPDATE_SECRET"):