From 82e19ebab2ae10881ad1cbb7274ccff9e0c59384 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Sat, 30 Nov 2019 23:20:33 +0100 Subject: [PATCH] Better logging --- tootbot.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tootbot.py b/tootbot.py index 1638a7c..8821c93 100755 --- a/tootbot.py +++ b/tootbot.py @@ -102,6 +102,7 @@ for t in reversed(d.entries[0:5]): c = c.replace('\xa0…',' ') if toot_media is not None: + print(f'posting via {mastodon}, message {c}') toot = mastodon_api.status_post(c, in_reply_to_id=None, media_ids=toot_media, sensitive=False, visibility='public', spoiler_text=None) if "id" in toot: db.execute("INSERT INTO tweets VALUES ( ? , ? , ? , ? , ? )",