Updated logging info

This commit is contained in:
jeancf 2022-11-23 11:25:19 +01:00
parent 85c5c2ef48
commit 4a73a6252e

View File

@ -486,17 +486,17 @@ def main(argv):
datefmt='%Y-%m-%d %H:%M:%S', datefmt='%Y-%m-%d %H:%M:%S',
) )
logging.info('Running with the following parameters:') logging.info('Running with the following configuration:')
logging.info(' -f ' + str(toml_file)) logging.info(' Config file : ' + str(toml_file))
logging.info(' -t ' + toml['config']['twitter_account']) logging.info(' twitter_account : ' + toml['config']['twitter_account'])
logging.info(' -i ' + toml['config']['mastodon_instance']) logging.info(' mastodon_instance: ' + toml['config']['mastodon_instance'])
logging.info(' -m ' + toml['config']['mastodon_user']) logging.info(' mastodon_user : ' + toml['config']['mastodon_user'])
logging.info(' -r ' + str(toml['options']['post_reply_to'])) logging.info(' post_reply_to : ' + str(toml['options']['post_reply_to']))
logging.info(' -s ' + str(toml['options']['skip_retweets'])) logging.info(' skip_retweets : ' + str(toml['options']['skip_retweets']))
logging.info(' -v ' + str(toml['options']['upload_videos'])) logging.info(' upload_videos : ' + str(toml['options']['upload_videos']))
logging.info(' -a ' + str(toml['options']['tweet_max_age'])) logging.info(' tweet_max_age : ' + str(toml['options']['tweet_max_age']))
logging.info(' -d ' + str(toml['options']['tweet_delay'])) logging.info(' tweet_delay : ' + str(toml['options']['tweet_delay']))
logging.info(' -c ' + str(toml['options']['toot_cap'])) logging.info(' toot_cap : ' + str(toml['options']['toot_cap']))
# Try to open database. If it does not exist, create it # Try to open database. If it does not exist, create it
sql = sqlite3.connect('twoot.db') sql = sqlite3.connect('twoot.db')