Adjusted logging messages

This commit is contained in:
jeancf 2023-06-20 11:30:27 +02:00
parent 6667b7ef60
commit fafd6a1ef8

View File

@ -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: <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