From a62a0fcdc310747172895766e10ea19eca673700 Mon Sep 17 00:00:00 2001 From: "A.M. Rowsell" Date: Sun, 20 Apr 2025 13:30:43 -0400 Subject: [PATCH] debug: added more logging to narrow down issue --- discorss.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/discorss.py b/discorss.py index ab49694..76f243d 100755 --- a/discorss.py +++ b/discorss.py @@ -125,6 +125,7 @@ def main(): feeds = feedparser.parse(hook["url"]) latest_post = [] prev_best = 0 + logger.debug("About to sort through entries for feed %s ...", hook["name"]) for feed in feeds["entries"]: try: bad_time = False @@ -145,6 +146,7 @@ def main(): ) # Hash the title and time of the latest post and use that to determine if it's been posted # Yes, SHA3-512 is totally unnecessary for this purpose, but I love SHA3 + logger.debug("About to hash %s ...", latest_post["title"]) try: new_hash = hashlib.sha3_512( bytes(latest_post["title"] + str(published_time), "utf-8")