From fafd6a1ef84070ec0eec34065e6db9a0582767c1 Mon Sep 17 00:00:00 2001 From: jeancf Date: Tue, 20 Jun 2023 11:30:27 +0200 Subject: [PATCH] Adjusted logging messages --- twoot.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/twoot.py b/twoot.py index 37d0e7b..bdcb2a9 100755 --- a/twoot.py +++ b/twoot.py @@ -179,10 +179,11 @@ def update_profile(nitter_url, soup, sql, mast_password): Update profile on Mastodon Check if avatar or banner pictures have changed since last run If they have, download them and upload them on the Mastodon account profile + :param nitter_url: url of the Nitter instance that is being used :param soup: BeautifulSoup object containing the page :param sql: database connection :param mast_password: - :return: mastodon object we had to login to update, None otherwise + :return: mastodon object if we had to login to update, None otherwise """ # Check if TOML option to update profile is set if TOML['options']['update_profile'] is False: @@ -272,7 +273,7 @@ def update_profile(nitter_url, soup, sql, mast_password): sql.commit() logging.debug("Profile updated on database") else: - logging.debug("No changes to profile found") + logging.info("No changes to profile found") return mastodon