debug: added more logging to narrow down issue

This commit is contained in:
A.M. Rowsell 2025-04-20 13:30:43 -04:00
commit a62a0fcdc3
Signed by: amr
GPG key ID: 0B6E2D8375CF79A9

View file

@ -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")